This is the mail archive of the
cygwin
mailing list for the Cygwin project.
gdb aborts after setting "throw" catchpoint
- From: Ryan Johnson <ryan dot johnson at cs dot utoronto dot ca>
- To: "cygwin at cygwin dot com" <cygwin at cygwin dot com>
- Date: Wed, 29 May 2013 17:23:48 -0400
- Subject: 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