llvm-project/lldb/source/Commands
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
..
CommandCompletions.cpp Added a cleanup helper object to make sure the directory that was opened with "DIR *opendir(const char *)" is closed if it is valid with a call to "int closedir (DIR *)". 2011-02-01 05:15:22 +00:00
CommandObjectApropos.cpp Modify 'apropos' command to search settings variable descriptions as well. 2011-02-04 00:16:49 +00:00
CommandObjectApropos.h Fixed the way set/show variables were being accessed to being natively 2010-09-18 01:14:36 +00:00
CommandObjectArgs.cpp A few of the issue I have been trying to track down and fix have been due to 2011-01-17 03:46:26 +00:00
CommandObjectArgs.h Fixed the way set/show variables were being accessed to being natively 2010-09-18 01:14:36 +00:00
CommandObjectBreakpoint.cpp Documentation fix - explain how to unset conditions. Also fix unsetting -x and -t so they work. 2010-12-03 23:04:19 +00:00
CommandObjectBreakpoint.h Documentation fix - explain how to unset conditions. Also fix unsetting -x and -t so they work. 2010-12-03 23:04:19 +00:00
CommandObjectBreakpointCommand.cpp The code to check whether the number of arguments was 0 was not necessary, VerifyBreakpointIDs will turn an empty argument into the last specified breakpoint. 2011-01-21 22:13:25 +00:00
CommandObjectBreakpointCommand.h Fixed the way set/show variables were being accessed to being natively 2010-09-18 01:14:36 +00:00
CommandObjectCommands.cpp Fix small bugs: 2010-12-14 18:51:39 +00:00
CommandObjectCommands.h Fix GetRepeatCommand so it works with multi-word commands. 2010-07-07 03:36:20 +00:00
CommandObjectCrossref.cpp Fixed the way set/show variables were being accessed to being natively 2010-09-18 01:14:36 +00:00
CommandObjectDisassemble.cpp Revert last checking to CommandObjectDisassemble.cpp; that was 2010-11-04 09:43:27 +00:00
CommandObjectDisassemble.h Fixed the way set/show variables were being accessed to being natively 2010-09-18 01:14:36 +00:00
CommandObjectExpression.cpp Implemented a major overhaul of the way variables are handled 2011-01-13 08:53:35 +00:00
CommandObjectExpression.h Added the equivalent of gdb's "unwind-on-signal" to the expression command, and a parameter to control it in ClangUserExpression, and on down to ClangFunction. 2010-11-05 19:25:48 +00:00
CommandObjectFile.cpp Fixed an issue where we were resolving paths when we should have been. 2010-10-20 20:54:39 +00:00
CommandObjectFile.h Fixed the way set/show variables were being accessed to being natively 2010-09-18 01:14:36 +00:00
CommandObjectFrame.cpp Endian patch from Kirk Beitz that allows better cross platform building. 2011-02-01 01:31:41 +00:00
CommandObjectFrame.h Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
CommandObjectHelp.cpp - Fix alias-building & resolving to properly handle optional arguments for command options. 2010-12-07 19:58:26 +00:00
CommandObjectHelp.h Fixed the way set/show variables were being accessed to being natively 2010-09-18 01:14:36 +00:00
CommandObjectImage.cpp Finished up the async attach support. This allows us to request to attach 2011-01-29 07:10:55 +00:00
CommandObjectImage.h Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
CommandObjectLog.cpp Add a method to StreamFile to line buffer the file. Use that in "log enable -f file" to line buffer the log output. 2011-01-24 04:09:25 +00:00
CommandObjectLog.h Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
CommandObjectMemory.cpp Fixed an issue where we were resolving paths when we should have been. 2010-10-20 20:54:39 +00:00
CommandObjectMemory.h Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
CommandObjectMultiword.cpp Make CommandObjectMultiword::GetSubcommandSP() more robust by appending the 2010-12-01 01:04:22 +00:00
CommandObjectProcess.cpp Added support for attaching to a remote debug server with the new command: 2011-02-04 01:58:07 +00:00
CommandObjectProcess.h Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
CommandObjectQuit.cpp Fixed the way set/show variables were being accessed to being natively 2010-09-18 01:14:36 +00:00
CommandObjectQuit.h Fixed the way set/show variables were being accessed to being natively 2010-09-18 01:14:36 +00:00
CommandObjectRegister.cpp Modify existing commands with arguments to use the new argument mechanism 2010-10-04 22:28:36 +00:00
CommandObjectRegister.h Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
CommandObjectSettings.cpp Recent modifications to the Python script interpreter caused some problems 2011-01-14 21:09:29 +00:00
CommandObjectSettings.h Fixed the way set/show variables were being accessed to being natively 2010-09-18 01:14:36 +00:00
CommandObjectSource.cpp Changed the SymbolFile::FindFunction() function calls to only return 2011-01-27 06:44:37 +00:00
CommandObjectSource.h Fix GetRepeatCommand so it works with multi-word commands. 2010-07-07 03:36:20 +00:00
CommandObjectSyntax.cpp Modify existing commands with arguments to use the new argument mechanism 2010-10-04 22:28:36 +00:00
CommandObjectSyntax.h Fixed the way set/show variables were being accessed to being natively 2010-09-18 01:14:36 +00:00
CommandObjectTarget.cpp Add a test case test_image_search_paths() to test lldb's ability to do image search paths 2011-02-03 00:30:19 +00:00
CommandObjectTarget.h Very large changes that were needed in order to allow multiple connections 2010-06-23 01:19:29 +00:00
CommandObjectThread.cpp Endian patch from Kirk Beitz that allows better cross platform building. 2011-02-01 01:31:41 +00:00
CommandObjectThread.h Add -c (count - i.e. number of frames to show) and -s (start frame.) 2010-08-26 23:36:03 +00:00
CommandObjectVersion.cpp Add a simple command: 'version' to the command interpreter, and an accompanying 2010-12-23 20:21:44 +00:00
CommandObjectVersion.h Add a simple command: 'version' to the command interpreter, and an accompanying 2010-12-23 20:21:44 +00:00
Makefile Merged Eli Friedman's linux build changes where he added Makefile files that 2010-07-09 20:39:50 +00:00