epasveer / seer

Seer - a gui frontend to gdb
GNU General Public License v3.0
2.11k stars 69 forks source link

Doesn't catch if the gdb process exits unexpectedly. #44

Closed epasveer closed 2 years ago

epasveer commented 2 years ago

Had an interesting case of the gdb process encountering a 'sigsegv' when loading a program's image. Even running gdb from the command encountered the same problem.

The QProcess object should be able to notify (via a signal) the SeerGdbWidget object of this early/bad/unexpected exit of the gdb process that it launched. And bring up a dialog, with the exit status of gdb.

awsdert commented 2 years ago

Just in case you're not aware of it the function you're looking for to implement this feature is wait, here's a link to it's doc: https://man7.org/linux/man-pages/man2/wait.2.html

epasveer commented 2 years ago

It was a bug with my handling of Qt's QProcess object. I wasn't "listening" to its 'processExit' signal at all times.

It's is fixed now and tested with the problem program.