diff options
author | Joel Brobecker <brobecker@gnat.com> | 2013-10-04 08:35:31 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2013-10-04 08:35:31 +0000 |
commit | 5713b9b5c1cb873d65caba98616e3f9d92db11f6 (patch) | |
tree | d799d2878722ee6901a9fa3e86f181542ebc54d9 /gdb/doc | |
parent | f48ff2a7d3f69653dbf164e03d3397de8f6ba7c0 (diff) | |
download | binutils-5713b9b5c1cb873d65caba98616e3f9d92db11f6.zip binutils-5713b9b5c1cb873d65caba98616e3f9d92db11f6.tar.gz binutils-5713b9b5c1cb873d65caba98616e3f9d92db11f6.tar.bz2 |
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')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 705af69..04e291b 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2013-10-04 Joel Brobecker <brobecker@adacore.com> + + * gdb.texinfo (GDB/MI Program Execution): Document "-exec-run"'s + new "--start" option. + 2013-10-02 Pedro Alves <palves@redhat.com> * gdb.texinfo (Registers): Expand description of saved registers diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index cf6f7d3..a68556b 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}. |