Page 1 of 1

Break when C++ exception is thrown

Posted: Thu Jun 25, 2015 12:13 pm
by nezos
At http://codelite.org/LiteEditor/DebuggerSettings, it says that this option will fail for some versions of gdb, on some platforms.

Does this work for anyone in Windows? Mingw64?

When selecting this option gdborig crashes. I am using Mingw64 4.9.2 with gdb 7.8.1.

Re: Break when C++ exception is thrown

Posted: Thu Jun 25, 2015 12:22 pm
by eranif
Basically, what this option does is passing the command "catch throw" command to gdb
Which is OS dependent.

If your gdb crashes, you could try this (Windows / MinGW ):
settings->gdb settings->startup commands
and add this :

Code: Select all

break __cxa_throw
Tried this on simple hello-world app and it worked

Eran