From 19388cfc6e82f54e4b5bb468f87aaba61ac465dc Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Mon, 18 Oct 2010 01:45:30 +0000 Subject: Fixed debugserver to properly attach to a process by name with the "vAttachName;" packet, and wait for a new process by name to launch with the "vAttachWait;". Fixed a few issues with attaching where if DoAttach() returned no error, yet there was no valid process ID, we would deadlock waiting for an event that would never happen. Added a new "process launch" option "--tty" that will launch the process in a new terminal if the Host layer supports the "Host::LaunchInNewTerminal(...)" function. This currently works on MacOSX and will allow the debugging of terminal applications that do complex operations with the terminal. Cleaned up the output when the process resumes, stops and halts to be consistent with the output format. llvm-svn: 116693 --- lldb/source/Commands/CommandObjectThread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/source/Commands/CommandObjectThread.cpp') diff --git a/lldb/source/Commands/CommandObjectThread.cpp b/lldb/source/Commands/CommandObjectThread.cpp index ece29d394d9..01708a4e428 100644 --- a/lldb/source/Commands/CommandObjectThread.cpp +++ b/lldb/source/Commands/CommandObjectThread.cpp @@ -924,7 +924,7 @@ public: Error error (process->Resume()); if (error.Success()) { - result.AppendMessageWithFormat ("Resuming process %i\n", process->GetID()); + result.AppendMessageWithFormat ("Process %i resuming\n", process->GetID()); if (synchronous_execution) { state = process->WaitForProcessToStop (NULL); @@ -1223,7 +1223,7 @@ public: Error error (process->Resume ()); if (error.Success()) { - result.AppendMessageWithFormat ("Resuming process %i\n", process->GetID()); + result.AppendMessageWithFormat ("Process %i resuming\n", process->GetID()); if (synchronous_execution) { StateType state = process->WaitForProcessToStop (NULL); -- cgit v1.2.3