summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/State.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-18 01:45:30 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-18 01:45:30 +0000
commit19388cfc6e82f54e4b5bb468f87aaba61ac465dc (patch)
tree8c11d6f25d891dedd78ffe240c78f064eae17757 /lldb/source/Core/State.cpp
parent0ea1047d51ab984a3cb66789e81b1b3b6b2cca56 (diff)
downloadbcm5719-llvm-19388cfc6e82f54e4b5bb468f87aaba61ac465dc.tar.gz
bcm5719-llvm-19388cfc6e82f54e4b5bb468f87aaba61ac465dc.zip
Fixed debugserver to properly attach to a process by name with the
"vAttachName;<PROCNAME>" packet, and wait for a new process by name to launch with the "vAttachWait;<PROCNAME>". 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
Diffstat (limited to 'lldb/source/Core/State.cpp')
-rw-r--r--lldb/source/Core/State.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/lldb/source/Core/State.cpp b/lldb/source/Core/State.cpp
index 741df1fe644..a68ac73092a 100644
--- a/lldb/source/Core/State.cpp
+++ b/lldb/source/Core/State.cpp
@@ -22,17 +22,17 @@ lldb_private::StateAsCString (StateType state)
{
switch (state)
{
- case eStateInvalid: return "Invalid";
- case eStateUnloaded: return "Unloaded";
- case eStateAttaching: return "Attaching";
- case eStateLaunching: return "Launching";
- case eStateStopped: return "Stopped";
- case eStateRunning: return "Running";
- case eStateStepping: return "Stepping";
- case eStateCrashed: return "Crashed";
- case eStateDetached: return "Detached";
- case eStateExited: return "Exited";
- case eStateSuspended: return "Suspended";
+ case eStateInvalid: return "invalid";
+ case eStateUnloaded: return "unloaded";
+ case eStateAttaching: return "attaching";
+ case eStateLaunching: return "launching";
+ case eStateStopped: return "stopped";
+ case eStateRunning: return "running";
+ case eStateStepping: return "stepping";
+ case eStateCrashed: return "crashed";
+ case eStateDetached: return "detached";
+ case eStateExited: return "exited";
+ case eStateSuspended: return "suspended";
}
static char unknown_state_string[64];
snprintf(unknown_state_string, sizeof (unknown_state_string), "StateType = %i", state);
OpenPOWER on IntegriCloud