Bug 24578 - a 'resume' pseudo-command and 'hook-resume' to go with it
Summary: a 'resume' pseudo-command and 'hook-resume' to go with it
Status: UNCONFIRMED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: unknown
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-18 23:31 UTC by Dave Yost
Modified: 2019-05-18 23:31 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Yost 2019-05-18 23:31:55 UTC
https://sourceware.org/gdb/onlinedocs/gdb/Hooks.html
says:
a pseudo-command, ‘stop’ exists. Defining (‘hook-stop’) makes the associated commands execute every time execution stops in your program: before breakpoint commands are run, displays are printed, or the stack frame is printed.

I wish it would also say:
a pseudo-command, ‘resume’ exists. Defining (‘hook-resume’) makes the associated commands execute every time execution resumes in your program.

For a description of how this could be used for debugging timing code, see
https://github.com/daveyostcom/DateTimeDebug