How to Cleanly Terminate GDB? [message #1818131] |
Fri, 06 December 2019 13:48  |
Eclipse User |
|
|
|
I am developing a continuously-running Linux daemon in C++ and am remotely debugging it using GDB and the Eclipse CDT. When I terminate a debugging session using the Terminate button in the Eclipse IDE, my daemon is seemingly killed using a SIGKILL signal. This causes issues for me because the abrupt termination of my daemon does not allow for process cleanup to be done and can lead to data corruption in the files/databases that it interacts with.
With this in mind, what are my options for performing a clean application shutdown under GDB when the Terminate button is pressed in Eclipse?
In an ideal world, I would like to have the Terminate button first send a signal of my choosing to my daemon which I could then use to cleanup/terminate it before GDB is killed. However, I would be open to using any available CDT or GDB tricks which would accomplish my goal.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06766 seconds