Debugging with GDB (September 2007)
298 Debugging with GDB
Example
(gdb)
-file-exec-and-symbols /kwikemart/marge/ezannoni/TRUNK/mbx/hello.mbx
^done
(gdb)
The -file-exec-file command
Synopsis
-file-exec-file file
Specify the executable file to be debugged. Unlike ‘-file-exec-and-symbols’, the sym-
bol table is not read from this file. If used without argument, GDB clears the information
about the executable file. No output is produced, except a completion notification.
GDB command
The corresponding GDB command is ‘exec-file’.
Example
(gdb)
-file-exec-file /kwikemart/marge/ezannoni/TRUNK/mbx/hello.mbx
^done
(gdb)
The -file-list-exec-sections command
Synopsis
-file-list-exec-sections
List the sections of the current executable file.
GDB command
The GDB c ommand ‘info file’ shows, among the rest, the same information as this
command. gdbtk has a corresponding command ‘gdb_load_info’.
Example
N.A.
The -file-list-exec-source-files command