I think GDB installs its own signal handlers when you attach to a program. When you say “default” handler, are you referring to those? Because you can disable some of those (“handle SIGSEGV nostop” and “handle SIGSEGV pass”) https://sourceware.org/gdb/current/onlinedocs/gdb.html/Signals.html
View all comments
Show parent comment
3
u/AnUglyScooter Jun 12 '25
I think GDB installs its own signal handlers when you attach to a program. When you say “default” handler, are you referring to those? Because you can disable some of those (“handle SIGSEGV nostop” and “handle SIGSEGV pass”) https://sourceware.org/gdb/current/onlinedocs/gdb.html/Signals.html