top | item 33313924

(no title)

TheYumasi | 3 years ago

The TUI is from gdb.[1] Nothing from GDB is compiled in your binary. My guess (might be wrong!) is that the ShowCrashReports() call added in your program's main function sets up some signal handlers, so that in case of segfaults it starts GDB in a separate process and attaches it to your crashing process.

[1]: https://sourceware.org/gdb/onlinedocs/gdb/TUI.html

discuss

order

cassepipe|3 years ago

Which you have to admit is quite simple but brilliant.

a-dub|3 years ago

when did they add this?!?