llvm-project/lldb
Greg Clayton b766a73dfc Added support for attaching to a remote debug server with the new command:
(lldb) process connect <remote-url>

Currently when you specify a file with the file command it helps us to find
a process plug-in that is suitable for debugging. If you specify a file you
can rely upon this to find the correct debugger plug-in:

% lldb a.out
Current executable set to 'a.out' (x86_64).
(lldb) process connect connect://localhost:2345
...

If you don't specify a file, you will need to specify the plug-in name that
you wish to use:

% lldb
(lldb) process connect --plugin process.gdb-remote connect://localhost:2345

Other connection URL examples:

(lldb) process connect connect://localhost:2345
(lldb) process connect tcp://127.0.0.1
(lldb) process connect file:///dev/ttyS1

We are currently treating the "connect://host:port" as a way to do raw socket
connections. If there is a URL for this already, please let me know and we
will adopt it.

So now you can connect to a remote debug server with the ProcessGDBRemote
plug-in. After connection, it will ask for the pid info using the "qC" packet
and if it responds with a valid process ID, it will be equivalent to attaching.
If it response with an error or invalid process ID, the LLDB process will be
in a new state: eStateConnected. This allows us to then download a program or
specify the program to run (using the 'A' packet), or specify a process to
attach to (using the "vAttach" packets), or query info about the processes
that might be available.

llvm-svn: 124846
2011-02-04 01:58:07 +00:00
..
docs Spelling changes applied from lldb_spelling.diffs from Bruce Mitchener. 2011-01-08 20:28:42 +00:00
examples Spelling changes applied from lldb_spelling.diffs from Bruce Mitchener. 2011-01-08 20:28:42 +00:00
include Added support for attaching to a remote debug server with the new command: 2011-02-04 01:58:07 +00:00
lib Simple makefile fixups. 2011-01-25 23:03:42 +00:00
lldb.xcodeproj Modified the PluginManager to be ready for loading plug-ins from a system 2011-02-02 02:24:04 +00:00
lldb.xcworkspace Adding a Xcode workspace for lldb. 2011-01-27 20:15:39 +00:00
resources Bumped Xcode project versions to lldb-46 and debugserver-131. 2011-01-29 07:14:26 +00:00
scripts Updated Clang to a version that supports propagating 2011-01-27 04:42:51 +00:00
source Added support for attaching to a remote debug server with the new command: 2011-02-04 01:58:07 +00:00
test Add test_apropos_should_also_search_settings_description() to make sure that: 2011-02-04 00:50:49 +00:00
tools Added support for attaching to a remote debug server with the new command: 2011-02-04 01:58:07 +00:00
utils The recent change in argument parsing is messing up the emacs lldb mode's capability to properly 2010-12-20 22:58:58 +00:00
www Apply patch from Bruce Mitchener to fix spelling errors. 2011-01-07 17:16:03 +00:00
INSTALL.txt You'll need to be running Mac OS X to get lldb to build right now. 2010-06-09 07:29:26 +00:00
LICENSE.TXT test commit 2010-06-09 03:55:24 +00:00
Makefile Simple makefile fixups. 2011-01-25 23:03:42 +00:00