summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/Debugger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r--lldb/source/Core/Debugger.cpp16
1 files changed, 10 insertions, 6 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp
index 77f85724a39..f28c261b414 100644
--- a/lldb/source/Core/Debugger.cpp
+++ b/lldb/source/Core/Debugger.cpp
@@ -359,13 +359,16 @@ Debugger::Clear()
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 @@ TestPromptFormats (StackFrame *frame)
"{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}"
OpenPOWER on IntegriCloud