How can I pass GDB a "handle signal" command?

My application instantiates a JVM via JNI.  Java is using SIGSEGV signals internally, so I want to tell GDB to ignore them with a command like "handle SIGSEGV pass noprint nostop".  How do I configure that in CLion?

1 comment
Comment actions Permalink

You can switch to GDB tab in the Debugger pane and enter that command into the command line. Unfortunately, there is no way to make that setting persistent, but you can work around that by creating a ~/.gdbinit file.


Please sign in to leave a comment.