Debugging with GDB Manual The GNU Source-Level Debugger (769148-001, March 2014)
(gdb)
*stopped,reason="end-stepping-range",
frame={addr="0x000100f4",func="foo",args=[],file="try.c",line="10"}
(gdb)
The -exec-until command
Synopsis
-exec-until [ location ]
Asynchronous command. Executes the inferior until the location specified in the argument is
reached. If there is no argument, the inferior executes until a source line greater than the current
one is reached. The reason for stopping in this case will be 'location-reached'.
GDB command
The corresponding GDB command is 'until'.
Example
(gdb)
-exec-until recursive2.c:6
^running
(gdb)
x = 55
*stopped,reason="location-reached",thread-id="1",frame=addr="0x00002a24",func="main",args=[],
file="recursive2.c",line="6"
(gdb)
The -file-exec-and-symbols command
Synopsis
-file-exec-and-symbols file
Specify the executable file to be debugged. This file is the one from which the symbol table is also
read. If no file is specified, the command clears the executable and symbol information. If
breakpoints are set when using this command with no arguments, GDB will produce error messages.
Otherwise, no output is produced, except a completion notification.
GDB command
The corresponding GDB command is 'file'.
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 symbol
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'.
GDB/MI program control 257