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/Breakpoint/BreakpointLocationCollection.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/Breakpoint/BreakpointLocationCollection.cpp')
-rw-r--r-- | lldb/source/Breakpoint/BreakpointLocationCollection.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lldb/source/Breakpoint/BreakpointLocationCollection.cpp b/lldb/source/Breakpoint/BreakpointLocationCollection.cpp index c03b7dd2b16..ee3f56f928d 100644 --- a/lldb/source/Breakpoint/BreakpointLocationCollection.cpp +++ b/lldb/source/Breakpoint/BreakpointLocationCollection.cpp @@ -162,6 +162,25 @@ BreakpointLocationCollection::ValidForThisThread (Thread *thread) return false; } +bool +BreakpointLocationCollection::IsInternal () const +{ + collection::const_iterator pos, + begin = m_break_loc_collection.begin(), + end = m_break_loc_collection.end(); + + bool is_internal = true; + + for (pos = begin; pos != end; ++pos) + { + if (!(*pos)->GetBreakpoint().IsInternal ()) + { + is_internal = false; + break; + } + } + return is_internal; +} void BreakpointLocationCollection::GetDescription (Stream *s, lldb::DescriptionLevel level) |