|
NAMElldb-server - LLDB DocumentationSYNOPSISlldb-server v[ersion] lldb-server g[dbserver] [options] lldb-server p[latform] [options] DESCRIPTIONlldb-server provides the server counterpart of the LLVM debugger. The server runs and monitors the debugged program, while the user interfaces with it via a client, either running locally or connecting remotely.All of the code in the LLDB project is available under the Apache 2.0 License with LLVM exceptions. COMMANDSThe first argument to lldb-server specifies a command to run.
GDBSERVER COMMANDlldb-server g[dbserver] [options] [[host]:port] [[--] program args...] CONNECTION
GENERAL OPTIONS
TARGET SELECTION
If neither of target options are used, lldb-server is started without a specific target. It can be afterwards instructed by the client to launch or attach. PLATFORM COMMANDlldb-server p[latform] [options] --server --listen [[host]:port] CONNECTION
GENERAL OPTIONS
GDB-SERVER CONNECTIONS
EXAMPLESThe server can be started in several modes.In order to launch a new process inside the debugger, pass the path to it and the arguments to the debugged executable as positional arguments. To disambiguate between arguments passed to lldb and arguments passed to the debugged executable, arguments starting with a - must be passed after --. The server will launch the new executable and stop it immediately, waiting for the client to connect. lldb-server g :1234 /path/to/program program-argument --
--program-option
For convenience, passing the executable after -- is also supported. lldb-server g :1234 -- /path/to/program program-argument
--program-option
In order to attach to a running process, pass --attach along with the process identifier or name. The process will be stopped immediately after starting the server. Note that terminating the server will usually cause the process to be detached and continue execution. lldb-server g :1234 --attach 12345 lldb-server g :1234
--attach program-name
Use gdb-remote command to connect to the server: (lldb) gdb-remote 1234
lldb-server can also be started without an inferior. In this case, the client can select the target after connecting to the server. Note that some commands (e.g. target create) will disconnect and launch a local lldb-server instead. lldb-server g :1234
(lldb) gdb-remote 1234 (lldb) process launch a.out SEE ALSOThe LLDB project page https://lldb.llvm.org has many different resources for lldb-server users.AUTHORLLVM projectCOPYRIGHT2007-2021, The LLDB Team
Visit the GSP FreeBSD Man Page Interface. |