[PATCH 1/5] gdb: terminate upon receipt of SIGFPE
Tom Tromey
tom@tromey.com
Fri Jul 2 18:11:54 GMT 2021
>>>>> "Eli" == Eli Zaretskii via Gdb-patches <gdb-patches@sourceware.org> writes:
>> In this commit, I propose to remove all special handling of SIGFPE and
>> instead just let GDB make use of the default SIGFPE action, that is,
>> to terminate the process.
Eli> It is indeed a bad idea to return from a fatal signal handler, but
Eli> terminating the GDB process is not the only safe alternative. Another
Eli> alternative is to longjmp from the signal handler to the top-level
Eli> command loop. Wouldn't that be better?
I was also wondering if this would be possible -- treat it the way that
gdb treats assertion failures and try to carry on.
Tom
More information about the Gdb-patches
mailing list