Don't delete & remake the exception breakpoints every time you need them. Make them once & enable/disable
them as appropriate.
Also reformatted the lldb summaries to make them easier to read, and added one. I'll do more as I get time.
llvm-svn: 135827
diff --git a/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
index 00b450e..7a20425 100644
--- a/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/CPlusPlus/ItaniumABI/ItaniumABILanguageRuntime.cpp
@@ -265,12 +265,16 @@
"__cxa_throw",
eFunctionNameTypeBase,
true);
+ else
+ m_cxx_exception_bp_sp->SetEnabled (true);
if (!m_cxx_exception_alloc_bp_sp)
m_cxx_exception_alloc_bp_sp = m_process->GetTarget().CreateBreakpoint (NULL,
"__cxa_allocate",
eFunctionNameTypeBase,
true);
+ else
+ m_cxx_exception_alloc_bp_sp->SetEnabled (true);
}
void
@@ -281,14 +285,12 @@
if (m_cxx_exception_bp_sp.get())
{
- m_process->GetTarget().RemoveBreakpointByID(m_cxx_exception_bp_sp->GetID());
- m_cxx_exception_bp_sp.reset();
+ m_cxx_exception_bp_sp->SetEnabled (false);
}
if (m_cxx_exception_alloc_bp_sp.get())
{
- m_process->GetTarget().RemoveBreakpointByID(m_cxx_exception_alloc_bp_sp->GetID());
- m_cxx_exception_bp_sp.reset();
+ m_cxx_exception_bp_sp->SetEnabled (false);
}
}