summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-gdbserver
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2015-01-21 22:42:49 +0000
committerVince Harron <vharron@google.com>2015-01-21 22:42:49 +0000
commit1b5a74eea7fff1432dcb97a8107db6d13bee85ee (patch)
tree64e8ef041b6faaddb935ff8c5efcd078664bd7d0 /lldb/tools/lldb-gdbserver
parent229eb4ca5c0d955e59d4a53ae58afd0b2385a11d (diff)
downloadbcm5719-llvm-1b5a74eea7fff1432dcb97a8107db6d13bee85ee.tar.gz
bcm5719-llvm-1b5a74eea7fff1432dcb97a8107db6d13bee85ee.zip
This patch gets remote-linux platform able to run processes
Make sure the selected platform is always used Make sure that the host uses the connect://hostname to connect to both the lldb-platform and the lldb-gdbserver rather than what the platform reports as the hostname of the lldb-gdbserver Make sure that lldb-platform uses the IP address on it's connection back to the host instead of the hostname that the host sends to it when launching lldb-gdbserver with the remote host information Tested on OSX and Linux llvm-svn: 226712
Diffstat (limited to 'lldb/tools/lldb-gdbserver')
-rw-r--r--lldb/tools/lldb-gdbserver/lldb-gdbserver.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/lldb/tools/lldb-gdbserver/lldb-gdbserver.cpp b/lldb/tools/lldb-gdbserver/lldb-gdbserver.cpp
index 1aec138104b..dfb162cbc4b 100644
--- a/lldb/tools/lldb-gdbserver/lldb-gdbserver.cpp
+++ b/lldb/tools/lldb-gdbserver/lldb-gdbserver.cpp
@@ -428,7 +428,7 @@ ConnectToRemote (GDBRemoteCommunicationServer &gdb_server, bool reverse_connect,
// Ensure we connected.
if (s_listen_connection_up)
{
- printf ("Connection established.\n");
+ printf ("Connection established '%s'\n", s_listen_connection_up->GetURI().c_str());
gdb_server.SetConnection (s_listen_connection_up.release());
}
else
@@ -640,6 +640,15 @@ main (int argc, char *argv[])
log_args.AppendArgument("default");
ProcessGDBRemoteLog::EnableLog (log_stream_sp, 0,log_args.GetConstArgumentVector(), log_stream_sp.get());
}
+ Log *log(lldb_private::GetLogIfAnyCategoriesSet (GDBR_LOG_VERBOSE));
+ if (log)
+ {
+ log->Printf ("lldb-gdbserver launch");
+ for (int i = 0; i < argc; i++)
+ {
+ log->Printf ("argv[%i] = '%s'", i, argv[i]);
+ }
+ }
// Skip any options we consumed with getopt_long_only.
argc -= optind;
OpenPOWER on IntegriCloud