diff options
author | Jim Ingham <jingham@apple.com> | 2011-09-15 21:36:42 +0000 |
---|---|---|
committer | Jim Ingham <jingham@apple.com> | 2011-09-15 21:36:42 +0000 |
commit | 8314c5259d6e51e15c749fc1ef7584d5cf37698d (patch) | |
tree | b122ed38ddddd891525340b86ca9e105f600838e /lldb/source/Target/Process.cpp | |
parent | 12e9a2012f9beddd67de6b9c202890a96428e4d4 (diff) | |
download | bcm5719-llvm-8314c5259d6e51e15c749fc1ef7584d5cf37698d.tar.gz bcm5719-llvm-8314c5259d6e51e15c749fc1ef7584d5cf37698d.zip |
Track whether a process was Launched or Attached to. If Attached, the detach when the debugger is destroyed, rather than killing the process. Also added a Debugger::Clear, which gets called in Debugger::Destroy to deal with all the targets in the Debugger. Also made the Driver's main loop call Destroy on the debugger, rather than just Destroying the currently selected Target's process.
llvm-svn: 139853
Diffstat (limited to 'lldb/source/Target/Process.cpp')
-rw-r--r-- | lldb/source/Target/Process.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index b36accbdf18..3fdc2a71bc6 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -600,6 +600,7 @@ Process::Process(Target &target, Listener &listener) : m_stdout_data (), m_memory_cache (*this), m_allocated_memory_cache (*this), + m_attached_to_process (false), m_next_event_action_ap() { UpdateInstanceName(); @@ -2305,6 +2306,7 @@ Process::CompleteAttach () { // Let the process subclass figure out at much as it can about the process // before we go looking for a dynamic loader plug-in. + m_attached_to_process = true; DidAttach(); // We just attached. If we have a platform, ask it for the process architecture, and if it isn't |