summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/DNB.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/tools/debugserver/source/DNB.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/tools/debugserver/source/DNB.cpp')
-rw-r--r--lldb/tools/debugserver/source/DNB.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/lldb/tools/debugserver/source/DNB.cpp b/lldb/tools/debugserver/source/DNB.cpp
index ce7670cb209..948125b9714 100644
--- a/lldb/tools/debugserver/source/DNB.cpp
+++ b/lldb/tools/debugserver/source/DNB.cpp
@@ -433,9 +433,12 @@ GetAllInfosMatchingName(const char *full_process_name, std::vector<struct kinfo_
}
nub_process_t
-DNBProcessAttachWait (const char *waitfor_process_name, nub_launch_flavor_t launch_flavor,
- struct timespec *timeout_abstime, useconds_t waitfor_interval,
- char *err_str, size_t err_len,
+DNBProcessAttachWait (const char *waitfor_process_name,
+ nub_launch_flavor_t launch_flavor,
+ struct timespec *timeout_abstime,
+ useconds_t waitfor_interval,
+ char *err_str,
+ size_t err_len,
DNBShouldCancelCallback should_cancel_callback,
void *callback_data)
{
OpenPOWER on IntegriCloud