summaryrefslogtreecommitdiffstats
path: root/lldb/source/API
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-03-05 01:20:11 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-03-05 01:20:11 +0000
commit930e3ad51e23e6ef29657d607173faf3e0e2b7b8 (patch)
tree687f0c3e3f177903282d5c486963b08965a2f137 /lldb/source/API
parent4b598e156ad58843d93319fd88832c77c06191ff (diff)
downloadbcm5719-llvm-930e3ad51e23e6ef29657d607173faf3e0e2b7b8.tar.gz
bcm5719-llvm-930e3ad51e23e6ef29657d607173faf3e0e2b7b8.zip
Add a test case ProcessAPITestCase.test_remote_launch() which tests SBProcess.RemoteLaunch()
API with a process not in eStateConnected, and checks that the remote launch failed. Modify SBProcess::RemoteLaunch()/RemoteAttachToProcessWithID()'s log statements to fix a crasher when logging is turned on. llvm-svn: 127055
Diffstat (limited to 'lldb/source/API')
-rw-r--r--lldb/source/API/SBProcess.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp
index 4566f76687f..2ebf7f6911b 100644
--- a/lldb/source/API/SBProcess.cpp
+++ b/lldb/source/API/SBProcess.cpp
@@ -141,7 +141,7 @@ SBProcess::RemoteLaunch (char const **argv,
if (log) {
SBStream sstr;
error.GetDescription (sstr);
- log->Printf ("SBProcess(%p)::RemoteLaunch (...) => SBError (%p): %s", error.get(), sstr.GetData());
+ log->Printf ("SBProcess(%p)::RemoteLaunch (...) => SBError (%p): %s", m_opaque_sp.get(), error.get(), sstr.GetData());
}
return error.Success();
@@ -171,7 +171,7 @@ SBProcess::RemoteAttachToProcessWithID (lldb::pid_t pid, lldb::SBError& error)
if (log) {
SBStream sstr;
error.GetDescription (sstr);
- log->Printf ("SBProcess(%p)::RemoteAttachToProcessWithID (%d) => SBError (%p): %s", error.get(), sstr.GetData());
+ log->Printf ("SBProcess(%p)::RemoteAttachToProcessWithID (%d) => SBError (%p): %s", m_opaque_sp.get(), pid, error.get(), sstr.GetData());
}
return error.Success();
OpenPOWER on IntegriCloud