diff options
author | John Baldwin <jhb@FreeBSD.org> | 2017-09-11 14:57:37 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2017-09-19 12:15:35 -0700 |
commit | 4e5a4f5850487740eb7549f1d0b8625ce577faab (patch) | |
tree | 0c55f26272032824250d95c45865592c340ccd52 /gdb/NEWS | |
parent | b7f54058d9cd409ada192bfefd4c99c98caaef2e (diff) | |
download | gdb-4e5a4f5850487740eb7549f1d0b8625ce577faab.zip gdb-4e5a4f5850487740eb7549f1d0b8625ce577faab.tar.gz gdb-4e5a4f5850487740eb7549f1d0b8625ce577faab.tar.bz2 |
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.
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -75,6 +75,9 @@ show debug separate-debug-file maint info selftests List the registered selftests. +starti + Start the debugged program stopping at the first instruction. + * TUI Single-Key mode now supports two new shortcut keys: `i' for stepi and `o' for nexti. |