Automatic continue in GDB on recoverable crashes in Clang

Nicolai Hähnle-Montoro nhaehnle at gmail.com
Thu Oct 15 10:26:40 UTC 2015


Hi,

following up to a discussion we just had on IRC, here's a way to have
GDB automatically continue when a SIGILL or SIGSEGV occurs in Clang in
a CrashRecoveryContext (where continuing the program is possible).

Simply load the attached script on GDB startup (e.g. paste it in your
~/.gdbinit or add a "source <path>/clang-crash-continue" in
~/.gdbinit). Debug symbols for libLLVM must be installed for this to
work.

Hope this is helpful in making you guys more productive :)

Cheers
Nicolai
-- 
Lerne, wie die Welt wirklich ist,
aber vergiss niemals, wie sie sein sollte.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-crash-continue
Type: application/octet-stream
Size: 1361 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20151015/209c622b/attachment.obj>


More information about the KDevelop-devel mailing list