User forums > Using Code::Blocks

Signals (debugging) - can anyone explain this weird behaviour?

<< < (2/2)

Jenna:

--- Quote from: johne53 on November 21, 2008, 11:08:41 am ---
--- Quote from: mandrav on November 21, 2008, 10:07:42 am ---"Debug->Information->Signal handling" will do the same thing in C::B. I just didn't have the time to make it editable so far.
--- End quote ---

Hmmm.... Debug->Information->Signal handling is grayed out in my version (Windows platform). Is that what you meant? Or is it time for me to update to the latest version?

--- End quote ---

It is only available, while debugging and if the debugging process is interrupted.
Start debugging and click the stop button once. This sends SIGINT to the debugger.

Now you should be able to use the "Information" submenu.

To change the debuggers behaviour, you can send commands to the debugger via "Debug -> Send user command to debugger" (only if debugging is interrupted).
The output is shown in the debugger log.

To see how signal handling can be changed, send "help handle" to the debugger.

johne53:
Thanks Jens, I see it now. I can see that the default setting for SIGINT is not to pass it to the program. To change this, what command would I need to send to the debugger? Or is there maybe a config file somewhere that I could edit?

johne53:
Or alternatively, is there any other signal that I can generate from a command line? It just occured to me that for testing purposes it doesn't need to be CTRL-C. Any signal could be suitable as long as I can generate it from the command line.

BTW, I did try help handle but it didn't seem to offer any solutions.

Jenna:

--- Quote from: johne53 on November 21, 2008, 01:09:03 pm ---Or alternatively, is there any other signal that I can generate from a command line? It just occured to me that for testing purposes it doesn't need to be CTRL-C. Any signal could be suitable as long as I can generate it from the command line.

--- End quote ---
http://sunsite.ualberta.ca/Documentation/Gnu/gdb-5.0/html_node/gdb_99.html#SEC99


--- Quote from: johne53 on November 21, 2008, 01:09:03 pm ---BTW, I did try help handle but it didn't seem to offer any solutions.

--- End quote ---
http://sunsite.ualberta.ca/Documentation/Gnu/gdb-5.0/html_node/gdb_38.html

johne53:
Those links were very helpful - thanks  :D

Navigation

[0] Message Index

[*] Previous page

Go to full version