Set the inferior program arguments, to be used in the next
-exec-run.
26.11.2.2. gdb Command
The corresponding gdb command is set args.
26.11.2.3. Example
Don't have one around.
26.11.3. The -exec-continueCommand
26.11.3.1. Synopsis
-exec-continue
Asynchronous command. Resumes the execution of the inferior program
until a breakpoint is encountered, or until the inferior exits.
26.11.3.2. gdb Command
The corresponding gdb corresponding is continue.
26.11.3.3. Example
-exec-continue
^running
(gdb)
@Hello world
*stopped,reason="breakpoint-hit",bkptno="2",frame={func="foo",args=[],
file="hello.c",line="13"}
(gdb)
26.11.4. The -exec-finishCommand
26.11.4.1. Synopsis
-exec-finish
Asynchronous command. Resumes the execution of the inferior program
until the current function is exited. Displays the results returned by
the function.
26.11.4.2. gdb Command
The corresponding gdb command is finish.
26.11.4.3. Example
Function returning void.
-exec-finish
^running
(gdb)
@hello from foo
*stopped,reason="function-finished",frame={func="main",args=[],
file="hello.c",line="7"}
(gdb)
Function returning other than void. The name of the internal
gdb variable storing the result is printed, together with the
value itself.
Asynchronous command. Interrupts the background execution of the target.
Note how the token associated with the stop message is the one for the
execution command that has been interrupted. The token for the interrupt
itself only appears in the ^done output. If the user is trying to
interrupt a non-running program, an error message will be printed.
Asynchronous command. Executes one machine instruction. If the
instruction is a function call continues until the function returns. If
the program stops at an instruction in the middle of a source line, the
address will be printed as well.
Asynchronous command. Starts execution of the inferior from the
beginning. The inferior executes until either a breakpoint is
encountered or the program exits.
Asynchronous command. Resumes execution of the inferior program, stopping
when the beginning of the next source line is reached, if the next
source line is not a function call. If it is, stop at the first
instruction of the called function.
Asynchronous command. Resumes the inferior which executes one machine
instruction. The output, once gdb has stopped, will vary depending on
whether we have stopped in the middle of a source line or not. In the
former case, the address at which the program stopped will be printed as
well.
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.
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.
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.
There's no gdb command which directly corresponds to this one.
gdbtk has an analogous command gdb_listfiles.
26.11.18.3. Example
N.A.
26.11.19. The -file-list-shared-librariesCommand
26.11.19.1. Synopsis
-file-list-shared-libraries
List the shared libraries in the program.
26.11.19.2. gdb Command
The corresponding gdb command is info shared.
26.11.19.3. Example
N.A.
26.11.20. The -file-list-symbol-filesCommand
26.11.20.1. Synopsis
-file-list-symbol-files
List symbol files.
26.11.20.2. gdb Command
The corresponding gdb command is info file (part of it).
26.11.20.3. Example
N.A.
26.11.21. The -file-symbol-fileCommand
26.11.21.1. Synopsis
-file-symbol-file file
Read symbol table info from the specified file argument. When
used without arguments, clears gdb's symbol table info. No output is
produced, except for a completion notification.