[PATCH] Add a 'starti' command.
Eli Zaretskii
eliz@gnu.org
Wed Aug 30 14:14:00 GMT 2017
> From: John Baldwin <jhb@FreeBSD.org>
> Date: Tue, 29 Aug 2017 15:54:57 -0700
>
> 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.
>
> gdb/ChangeLog:
>
> * NEWS (Changes since GDB 8.0): Add starti.
> * infcmd.c (enum run_break): New.
> (run_command_1): Insert temporary breakpoint at current PC for
> FIRST_INSTR case.
> (run_command): Use enum run_break.
> (start_command): Likewise.
> (starti_command): New function.
> (_initialize_infcmd): 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.
OK for the documentation parts.
Thanks.
More information about the Gdb-patches
mailing list