* gdb aborts after setting "throw" catchpoint
@ 2013-05-29 22:44 Ryan Johnson
2013-05-30 7:11 ` Noel Grandin
0 siblings, 1 reply; 3+ messages in thread
From: Ryan Johnson @ 2013-05-29 22:44 UTC (permalink / raw)
To: cygwin
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdb aborts after setting "throw" catchpoint
2013-05-29 22:44 gdb aborts after setting "throw" catchpoint Ryan Johnson
@ 2013-05-30 7:11 ` Noel Grandin
2013-05-30 13:28 ` Ryan Johnson
0 siblings, 1 reply; 3+ messages in thread
From: Noel Grandin @ 2013-05-30 7:11 UTC (permalink / raw)
To: cygwin
On 2013-05-29 23:23, Ryan Johnson wrote:
>
> 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)
That was a mistake in the documentation, they didn't actually get around
to implementing it.
They have since rectified that mistake, but it's only going to be in
version 7.7
See bug:
http://sourceware.org/bugzilla/show_bug.cgi?id=13588
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: gdb aborts after setting "throw" catchpoint
2013-05-30 7:11 ` Noel Grandin
@ 2013-05-30 13:28 ` Ryan Johnson
0 siblings, 0 replies; 3+ messages in thread
From: Ryan Johnson @ 2013-05-30 13:28 UTC (permalink / raw)
To: cygwin
On 30/05/2013 2:37 AM, Noel Grandin wrote:
> On 2013-05-29 23:23, Ryan Johnson wrote:
>>
>> 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)
>
>
> That was a mistake in the documentation, they didn't actually get
> around to implementing it.
> They have since rectified that mistake, but it's only going to be in
> version 7.7
>
> See bug:
> http://sourceware.org/bugzilla/show_bug.cgi?id=13588
That bug seems to be about adding filtering based on exception type, not
about supporting catchpoints in general; the latter have worked for
years in gdb-linux (at a minimum, my server at work can do it with
gdb-7.4).
The problem here is that gdb-cygwin crashes when running with a
catchpoint enabled. I don't see any bugs on Sourceware about that,
though I suspect the search interface is terrible so I could be missing
something obvious.
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-30 12:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-29 22:44 gdb aborts after setting "throw" catchpoint Ryan Johnson
2013-05-30 7:11 ` Noel Grandin
2013-05-30 13:28 ` Ryan Johnson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).