Options and Arguments for GDB
Motorola
GNU Debugger (GDB)
For More Information On This Product,
Go to: www.freescale.com
D-51
D.14.2 File-specifying Options
All the options and command line arguments shown in Table D-26 are processed in
sequential order. The order makes a difference when the ‘-x’ option is used.
D.14.3 Other Arguments
If there are arguments to GDB that are not options or associated with options, the first one
specifies the symbol table and executable file name (as if it were preceded by ‘-se’) and
the second one specifies a core dump file name (as if it were preceded by ‘-c’).
Table D-25. Mode Options
Mode Option
Description
‘-nx’
Do not execute commands from the init files ‘.gdbinit’. Normally, the commands in these files are
executed after all the command options and arguments have been processed. See section
Command Files.
‘-q’
“Quiet”. Do not print the usual introductory messages.
‘-batch’
Run in batch mode. Exit with code 0 after processing all the command files specified with ‘-x’
(and ‘.gdbinit’, if not inhibited). Exit with nonzero status if an error occurs in executing the GDB
commands in the command files.
‘-fullname’
This option is used when Emacs runs GDB as a subprocess. It tells GDB to output the full file
name and line number in a standard, recognizable fashion each time a stack frame is displayed
(which includes each time the program stops). This recognizable format looks like two ‘\032’
characters, followed by the file name, line number and character position separated by colons,
and a newline. The Emacs-to-GDB interface program uses the two ‘\032’ characters as a signal
to display the source code for the frame.
Table D-26. File Specifying Options
Options
Description
‘-s file’
Read symbol table from file file.
‘-e file’
Use file file as the executable file to execute when appropriate, and for examining pure data in
conjunction with a core dump.
‘-se file’
Read symbol table from file file and use it as the executable file.
‘-c file’
Use file file as a core dump to examine.
‘-x file’
Execute GDB commands from file file
‘-d
directory’
Add directory to the path to search for source files.
F
Freescale Semiconductor, Inc.
n
.