Debugger (GNU)
Syntax:
gdb_variant [options] [executable] [ core_file | pid ]
gdb_variant [options] --args executable [ inferior-arguments ...]
where gdb_variant depends on the target platform, as follows:
Target platform |
gdb_variant |
ARMv7 |
ntoarmv7-gdb |
AArch64 |
ntoaarch64-gdb |
x86 |
ntox86-gdb |
x86 64-bit |
ntox86_64-gdb |
Runs on:
Linux, Mac, Microsoft Windows
Description:
Invoke the GNU Debugger by running gdb. Once started,
gdb reads commands from the terminal until you tell it to exit.
For more information about GDB, see
https://www.gnu.org/software/gdb/documentation/.
QNX Neutrino extensions
The QNX Neutrino implementation of GDB includes some extensions:
- target qnx com_port_specifier | host:port
- Specify the target to use.
Note:
The devc-pty manager must be running on the machine that's
running pdebug, and a ptyp/ttyp pair must be available.
- set nto-inherit-env value
- Set where the remote process inherits its environment from.
If value is 0, the process inherits its environment from GDB.
If value is 1 (the default), the process inherits its
environment from pdebug.
- set nto-cwd path
- Specify the remote process's working directory. You should do this
before starting your program.
- set nto-stop-on-thread-events stop
- Stop on thread events.
When stop is 1, gdb stops on thread created and
thread destroyed events. The default is 0 (disabled).
- set nto-timeout time
- If your communication line is slow, you might need to set the timeout for remote reads;
time is the timeout, in seconds.
The default is 10 seconds.
- upload local_path remote_path
- Send a file to a remote target system.
- download remote_path local_path
- Retrieve a file from a remote target system.
- info pidlist
- Display a list of processes and their process IDs on the remote system.
- info meminfo
- Display a list of memory-region mappings (shared objects) for the current
process being debugged.