[Lldb-commits] [lldb] r148189 - /lldb/trunk/source/Core/Debugger.cpp
Greg Clayton
gclayton at apple.com
Sat Jan 14 09:04:19 PST 2012
Author: gclayton
Date: Sat Jan 14 11:04:19 2012
New Revision: 148189
URL: http://llvm.org/viewvc/llvm-project?rev=148189&view=rev
Log:
<rdar://problem/10684141>
When the lldb_private::Debugger goes away, it should cleanup all
of its targets.
Modified:
lldb/trunk/source/Core/Debugger.cpp
Modified: lldb/trunk/source/Core/Debugger.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Core/Debugger.cpp?rev=148189&r1=148188&r2=148189&view=diff
==============================================================================
--- lldb/trunk/source/Core/Debugger.cpp (original)
+++ lldb/trunk/source/Core/Debugger.cpp Sat Jan 14 11:04:19 2012
@@ -359,13 +359,16 @@
int num_targets = m_target_list.GetNumTargets();
for (int i = 0; i < num_targets; i++)
{
- ProcessSP process_sp (m_target_list.GetTargetAtIndex (i)->GetProcessSP());
- if (process_sp)
+ TargetSP target_sp (m_target_list.GetTargetAtIndex (i));
+ if (target_sp)
{
- if (process_sp->GetShouldDetach())
- process_sp->Detach();
- else
- process_sp->Destroy();
+ ProcessSP process_sp (target_sp->GetProcessSP());
+ if (process_sp)
+ {
+ if (process_sp->GetShouldDetach())
+ process_sp->Detach();
+ }
+ target_sp->Destroy();
}
}
DisconnectInput();
@@ -776,6 +779,7 @@
"{frame.reg.carp = '${frame.reg.carp}'\n}"
"{function.id = '${function.id}'\n}"
"{function.name = '${function.name}'\n}"
+ "{function.name-with-args = '${function.name-with-args}'\n}"
"{function.addr-offset = '${function.addr-offset}'\n}"
"{function.line-offset = '${function.line-offset}'\n}"
"{function.pc-offset = '${function.pc-offset}'\n}"
More information about the lldb-commits
mailing list