diff options
author | Jim Ingham <jingham@apple.com> | 2013-01-26 02:19:28 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2013-01-26 02:19:28 +0000 |
commit | 2995077d8acb87f68b32f4d5369e741ed4d5b6e9 (patch) | |
tree | c04429bb1110eb0d3db090a488fee07b45480ebd /lldb/source/Core/DynamicLoader.cpp | |
parent | 03c66d3c57b51188f33e7342088a636ae772c37c (diff) | |
download | bcm5719-llvm-2995077d8acb87f68b32f4d5369e741ed4d5b6e9.tar.gz bcm5719-llvm-2995077d8acb87f68b32f4d5369e741ed4d5b6e9.zip |
Add "target.process.stop-on-shared-library-events" setting, and make it work.
Add the ability to give breakpoints a "kind" string, and have the StopInfoBreakpoint
print that in the brief description if set. Also print the kind - if set - in the breakpoint
listing.
Give kinds to a bunch of the internal breakpoints.
We were deleting the Mac OS X dynamic loader breakpoint as though the id we had stored away was
a breakpoint site ID, but in fact it was a breakpoint id, so we never actually deleted it. Fixed that.
llvm-svn: 173555
Diffstat (limited to 'lldb/source/Core/DynamicLoader.cpp')
-rw-r--r-- | lldb/source/Core/DynamicLoader.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/source/Core/DynamicLoader.cpp b/lldb/source/Core/DynamicLoader.cpp index fa00e77ceb7..17a796fee9d 100644 --- a/lldb/source/Core/DynamicLoader.cpp +++ b/lldb/source/Core/DynamicLoader.cpp @@ -9,6 +9,7 @@ #include "lldb/lldb-private.h" #include "lldb/Target/DynamicLoader.h" +#include "lldb/Target/Process.h" #include "lldb/Core/PluginManager.h" using namespace lldb; @@ -45,8 +46,7 @@ DynamicLoader::FindPlugin (Process *process, const char *plugin_name) // DynamicLoader constructor //---------------------------------------------------------------------- DynamicLoader::DynamicLoader(Process *process) : - m_process (process), - m_stop_when_images_change(false) // Stop the process by default when a process' images change + m_process (process) { } @@ -64,12 +64,12 @@ DynamicLoader::~DynamicLoader() bool DynamicLoader::GetStopWhenImagesChange () const { - return m_stop_when_images_change; + return m_process->GetStopOnSharedLibraryEvents(); } void DynamicLoader::SetStopWhenImagesChange (bool stop) { - m_stop_when_images_change = stop; + m_process->SetStopOnSharedLibraryEvents (stop); } |