I want to avoid the situation in which you forget to generate the core dump file after application got SIGSEGV
, you leave gdb and you lost the information about that crash.
What I'm looking for is the analogue to commands
(for breakpoints), so I can script a set of commands to execute when my app receives a signal.
Something beeing executed after each command could work too, just like display
does. The point here is that I couldn't find how to check if X signal was generated.
At first, I prefer it to be something to configure inside gdb. By that, I mean not having to change how app/gdb are beeing launched.
Thanks in advance.
If your gdb supports the
catch signal
command, you can script it just like a breakpoint.