diff options
author | Jim Ingham <jingham@apple.com> | 2010-10-14 23:45:03 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2010-10-14 23:45:03 +0000 |
commit | 36f3b369d2632e6898166c0e697f85e2ab458ece (patch) | |
tree | 62bfedb1bc23100bdf34b43673fa90dbc0f38d5e /lldb/source/Target/Target.cpp | |
parent | 3f1cf0f373ab9915d4f7dff04c57017c62869386 (diff) | |
download | bcm5719-llvm-36f3b369d2632e6898166c0e697f85e2ab458ece.tar.gz bcm5719-llvm-36f3b369d2632e6898166c0e697f85e2ab458ece.zip |
Added support for breakpoint conditions. I also had to separate the "run the expression" part of ClangFunction::Execute from the "Gather the expression result" so that in the case of the Breakpoint condition I can move the condition evaluation into the normal thread plan processing.
Also added support for remembering the "last set breakpoint" so that "break modify" will act on the last set breakpoint.
llvm-svn: 116542
Diffstat (limited to 'lldb/source/Target/Target.cpp')
-rw-r--r-- | lldb/source/Target/Target.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp index 57d044987e9..4a5ce2fa21b 100644 --- a/lldb/source/Target/Target.cpp +++ b/lldb/source/Target/Target.cpp @@ -252,6 +252,12 @@ Target::CreateBreakpoint (SearchFilterSP &filter_sp, BreakpointResolverSP &resol bp_sp->ResolveBreakpoint(); } + + if (!internal && bp_sp) + { + m_last_created_breakpoint = bp_sp; + } + return bp_sp; } @@ -265,6 +271,8 @@ Target::RemoveAllBreakpoints (bool internal_also) m_breakpoint_list.RemoveAll (true); if (internal_also) m_internal_breakpoint_list.RemoveAll (false); + + m_last_created_breakpoint.reset(); } void @@ -303,7 +311,11 @@ Target::RemoveBreakpointByID (break_id_t break_id) if (LLDB_BREAK_ID_IS_INTERNAL (break_id)) m_internal_breakpoint_list.Remove(break_id, false); else + { + if (m_last_created_breakpoint->GetID() == break_id) + m_last_created_breakpoint.reset(); m_breakpoint_list.Remove(break_id, true); + } return true; } return false; |