Add a 'starti' command.
authorJohn Baldwin <jhb@FreeBSD.org>
Mon, 11 Sep 2017 21:57:37 +0000 (14:57 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 19 Sep 2017 19:15:35 +0000 (12:15 -0700)
commit4e5a4f5850487740eb7549f1d0b8625ce577faab
tree0c55f26272032824250d95c45865592c340ccd52
parentb7f54058d9cd409ada192bfefd4c99c98caaef2e
Add a 'starti' command.

This works like 'start' but it stops at the first instruction rather
than the first line in main().  This is useful if one wants to single
step through runtime linker startup.

While here, introduce a RUN_ARGS_HELP macro for shared help text
between run, start, and starti.  This includes expanding the help for
start and starti to include details from run's help text.

gdb/ChangeLog:

* NEWS (Changes since GDB 8.0): Add starti.
* infcmd.c (enum run_break): New.
(run_command_1): Queue pending event for RUN_STOP_AT_FIRST_INSN
case.
(run_command): Use enum run_how.
(start_command): Likewise.
(starti_command): New function.
(RUN_ARGS_HELP): New macro.
(_initialize_infcmd): Use RUN_ARGS_HELP for run and start
commands.  Add starti command.

gdb/doc/ChangeLog:

* gdb.texinfo (Starting your Program): Add description of
starti command.  Mention starti command as an alternative for
debugging the elaboration phase.

gdb/testsuite/ChangeLog:

* gdb.base/starti.c: New file.
* gdb.base/starti.exp: New file.
* lib/gdb.exp (gdb_starti_cmd): New procedure.
gdb/ChangeLog
gdb/NEWS
gdb/doc/ChangeLog
gdb/doc/gdb.texinfo
gdb/infcmd.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/starti.c [new file with mode: 0644]
gdb/testsuite/gdb.base/starti.exp [new file with mode: 0644]
gdb/testsuite/lib/gdb.exp
This page took 0.030432 seconds and 4 git commands to generate.