diff options
author | Greg Clayton <gclayton@apple.com> | 2011-06-17 03:31:01 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2011-06-17 03:31:01 +0000 |
commit | f3dd93c888afa9dcdbd7da6d6e09c879ce6b2cb2 (patch) | |
tree | f76a511e402175dfec524f1f6bacd9daccb64f25 /lldb/source/API/SBDebugger.cpp | |
parent | b0f5372bb33dac2aa487e9f4041e32910550344e (diff) | |
download | bcm5719-llvm-f3dd93c888afa9dcdbd7da6d6e09c879ce6b2cb2.tar.gz bcm5719-llvm-f3dd93c888afa9dcdbd7da6d6e09c879ce6b2cb2.zip |
Added the notion of an system root for SDKs. This is a directory where all
libraries and headers exist. This can be specified using the platform select
function:
platform select --sysroot /Volumes/remote-root remote-macosx
Each platform subclass is free to interpret the sysroot as needed.
Expose the new SDK root directory through the SBDebugger class.
Fixed an issue with the GDB remote protocol where unimplemented packets were
not being handled correctly.
llvm-svn: 133231
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r-- | lldb/source/API/SBDebugger.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp index 04d8f72ee83..35a66ae55d0 100644 --- a/lldb/source/API/SBDebugger.cpp +++ b/lldb/source/API/SBDebugger.cpp @@ -880,6 +880,22 @@ SBDebugger::SetCurrentPlatform (const char *platform_name) } bool +SBDebugger::SetCurrentPlatformSDKRoot (const char *sysroot) +{ + if (m_opaque_sp) + { + PlatformSP platform_sp (m_opaque_sp->GetPlatformList().GetSelectedPlatform()); + + if (platform_sp) + { + platform_sp->SetSDKRootDirectory (ConstString (sysroot)); + return true; + } + } + return false; +} + +bool SBDebugger::GetCloseInputOnEOF () const { if (m_opaque_sp) |