aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
index 42735e0..34efe2f 100644
--- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
@@ -435,6 +435,7 @@ ProcessGDBRemote::DoLaunch
// ::LogSetBitMask (GDBR_LOG_DEFAULT);
// ::LogSetOptions (LLDB_LOG_OPTION_THREADSAFE | LLDB_LOG_OPTION_PREPEND_TIMESTAMP | LLDB_LOG_OPTION_PREPEND_PROC_AND_THREAD);
// ::LogSetLogFile ("/dev/stdout");
+ LogSP log (ProcessGDBRemoteLog::GetLogIfAllCategoriesSet (GDBR_LOG_PROCESS));
ObjectFile * object_file = module->GetObjectFile();
if (object_file)
@@ -449,7 +450,10 @@ ProcessGDBRemote::DoLaunch
{
error = StartDebugserverProcess (host_port);
if (error.Fail())
+ {
+ log->Printf("failed to start debugserver process: %s", error.AsCString());
return error;
+ }
error = ConnectToDebugserver (connect_url);
}
@@ -546,6 +550,7 @@ ProcessGDBRemote::DoLaunch
if (GetID() == LLDB_INVALID_PROCESS_ID)
{
+ log->Printf("failed to connect to debugserver: %s", error.AsCString());
KillDebugserverProcess ();
return error;
}
@@ -561,6 +566,10 @@ ProcessGDBRemote::DoLaunch
}
}
}
+ else
+ {
+ log->Printf("failed to connect to debugserver: %s", error.AsCString());
+ }
}
else
{