This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb aborts after setting "throw" catchpoint


Hi all,

Compiling the following with the cygwin g++-4.5.3:

int global;
int main() {
    if (global)
        throw global;
    return 0;
}

Crashes gdb if a catchpoint is set:

GNU gdb (GDB) 7.6.50.20130408-cvs (cygwin-special)
... snip...
Reading symbols from /home/Ryan/experiments/a.exe...done.
(gdb) catch throw
Catchpoint 1 (throw)
(gdb) r
Starting program: /home/Ryan/experiments/a.exe
[New Thread 10024.0x1480]
[New Thread 10024.0x1758]
warning: SuspendThread failed. (winerr 6)
[Inferior 1 (process 10024) exited normally]
(gdb)
Debugger aborted (core dumped)

Has anybody seen this problem before? Meanwhile, setting a breakpoint on __cxa_throw works just fine, so at least there's a workaround.

Thoughts?
Ryan


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]