Using gdb, I need to run extra commands right before continue and immediately after it breaks. I thought I would make a user defined command like so:
define continue
pre_continue
continue
post_continue
end
This, of course, fails in a bottomless recursive pit. Is there a way to call the built-in command directly, bypassing the user defined command?
BTW: I need the command to be named continue so that the gdb frontend I’m using will call my user defined function.
User-defined Command Hooks is what you are looking for:
This solution should work for you: