diff options
author | Joel Brobecker <brobecker@gnat.com> | 2013-10-04 08:35:29 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2013-10-04 08:35:29 +0000 |
commit | 6957386a80c6432cf6fd3dec2b394a0dd836bac2 (patch) | |
tree | 058a541f9b4853e4cfa312bb92cc08f21da03458 /gdb/doc/gdb.texinfo | |
parent | d8de0472d930925e8a8bb8d8bfcd489f07c8a203 (diff) | |
download | gdb-6957386a80c6432cf6fd3dec2b394a0dd836bac2.tar.gz |
Add support for --start option in -exec-run GDB/MI command.
gdb/ChangeLog:
* mi/mi-main.c (run_one_inferior): Add function description.
Make ARG a pointer to an integer whose value determines whether
we should "run" or "start" the program.
(mi_cmd_exec_run): Add handling of the "--start" option.
Reject all other command-line options.
* NEWS: Add entry for "-exec-run"'s new "--start" option.
gdb/doc/ChangeLog:
* gdb.texinfo (GDB/MI Program Execution): Document "-exec-run"'s
new "--start" option.
gdb/testsuite/ChangeLog:
* gdb.mi/mi-start.c, gdb.mi/mi-start.exp: New files.
Diffstat (limited to 'gdb/doc/gdb.texinfo')
-rw-r--r-- | gdb/doc/gdb.texinfo | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index cf6f7d30a88..a68556b0872 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -31057,7 +31057,7 @@ fullname="/home/foo/bar/devo/gdb/testsuite/gdb.mi/basics.c",line="18"@} @subsubheading Synopsis @smallexample - -exec-run [--all | --thread-group N] + -exec-run [ --all | --thread-group N ] [ --start ] @end smallexample Starts execution of the inferior from the beginning. The inferior @@ -31065,11 +31065,17 @@ executes until either a breakpoint is encountered or the program exits. In the latter case the output will include an exit code, if the program has exited exceptionally. -When no option is specified, the current inferior is started. If the +When neither the @samp{--all} nor the @samp{--thread-group} option +is specified, the current inferior is started. If the @samp{--thread-group} option is specified, it should refer to a thread group of type @samp{process}, and that thread group will be started. If the @samp{--all} option is specified, then all inferiors will be started. +Using the @samp{--start} option instructs the debugger to stop +the execution at the start of the inferior's main subprogram, +following the same behavior as the @code{start} command +(@pxref{Starting}). + @subsubheading @value{GDBN} Command The corresponding @value{GDBN} command is @samp{run}. |