public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/12824] New: throw catchpoint doesn't catch rethrows @ 2011-05-30 15:11 matz at suse dot de 2013-02-25 18:51 ` [Bug c++/12824] " tromey at redhat dot com ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: matz at suse dot de @ 2011-05-30 15:11 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=12824 Summary: throw catchpoint doesn't catch rethrows Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned@sourceware.org ReportedBy: matz@suse.de # cat bla.cc int f (int i) { try { if (i) throw; } catch (...) { } return i+1; } int main () { f(1); return 0; } # g++ bla.cc # gdb ./a.out (gdb) catch throw catch throw Function "__cxa_throw" not defined. Catchpoint 1 (throw) (gdb) b __cxa_rethrow Breakpoint 1 at 0x4005a0 Perhaps it would be nice if 'catch throw' would also catch __cxa_rethrow. As that might lead to too much noise in normal rethrow behaviour, perhaps a new catchpoint type would be better. One of our users ran into this and was surprised that 'catch throw' didn't trigger on this one, and instead it went down into the SIBABRT. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12824] throw catchpoint doesn't catch rethrows 2011-05-30 15:11 [Bug c++/12824] New: throw catchpoint doesn't catch rethrows matz at suse dot de @ 2013-02-25 18:51 ` tromey at redhat dot com 2013-02-27 21:54 ` tromey at redhat dot com ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: tromey at redhat dot com @ 2013-02-25 18:51 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=12824 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at redhat dot com --- Comment #1 from Tom Tromey <tromey at redhat dot com> 2013-02-25 18:51:42 UTC --- I have an implementation of "catch rethrow". I'm still trying to decide if this is better than just having "catch throw" catch them all. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12824] throw catchpoint doesn't catch rethrows 2011-05-30 15:11 [Bug c++/12824] New: throw catchpoint doesn't catch rethrows matz at suse dot de 2013-02-25 18:51 ` [Bug c++/12824] " tromey at redhat dot com @ 2013-02-27 21:54 ` tromey at redhat dot com 2013-04-15 17:27 ` cvs-commit at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: tromey at redhat dot com @ 2013-02-27 21:54 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=12824 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at sourceware |tromey at redhat dot com |dot org | -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12824] throw catchpoint doesn't catch rethrows 2011-05-30 15:11 [Bug c++/12824] New: throw catchpoint doesn't catch rethrows matz at suse dot de 2013-02-25 18:51 ` [Bug c++/12824] " tromey at redhat dot com 2013-02-27 21:54 ` tromey at redhat dot com @ 2013-04-15 17:27 ` cvs-commit at gcc dot gnu.org 2013-04-15 18:14 ` tromey at redhat dot com 2013-04-15 18:15 ` tromey at redhat dot com 4 siblings, 0 replies; 6+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2013-04-15 17:27 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=12824 --- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2013-04-15 17:27:45 UTC --- CVSROOT: /cvs/src Module name: src Changes by: tromey@sourceware.org 2013-04-15 17:27:44 Modified files: gdb : ChangeLog NEWS breakpoint.c gdb/doc : ChangeLog gdb.texinfo gdb/testsuite : ChangeLog gdb/testsuite/gdb.cp: exception.exp Log message: PR c++/12824: * NEWS: Update. * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>: New constant. (classify_exception_breakpoint): New function. (print_it_exception_catchpoint, print_one_exception_catchpoint) (print_mention_exception_catchpoint) (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions) (catch_exception_command_1): Handle "rethrow" catchpoint. (catch_rethrow_command): New function. (_initialize_breakpoint): Add "catch rethrow" command. gdb/doc * gdb.texinfo (Set Catchpoints): Reorganize exception catchpoints. Document "catch rethrow". (Debugging C Plus Plus): Mention "catch rethrow". gdb/testsuite * gdb.cp/exception.exp: Add "catch rethrow" tests. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15409&r2=1.15410 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/NEWS.diff?cvsroot=src&r1=1.587&r2=1.588 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.c.diff?cvsroot=src&r1=1.753&r2=1.754 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1444&r2=1.1445 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.1078&r2=1.1079 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3623&r2=1.3624 http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.cp/exception.exp.diff?cvsroot=src&r1=1.25&r2=1.26 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12824] throw catchpoint doesn't catch rethrows 2011-05-30 15:11 [Bug c++/12824] New: throw catchpoint doesn't catch rethrows matz at suse dot de ` (2 preceding siblings ...) 2013-04-15 17:27 ` cvs-commit at gcc dot gnu.org @ 2013-04-15 18:14 ` tromey at redhat dot com 2013-04-15 18:15 ` tromey at redhat dot com 4 siblings, 0 replies; 6+ messages in thread From: tromey at redhat dot com @ 2013-04-15 18:14 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=12824 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |7.7 --- Comment #3 from Tom Tromey <tromey at redhat dot com> 2013-04-15 18:14:15 UTC --- Fix checked in. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/12824] throw catchpoint doesn't catch rethrows 2011-05-30 15:11 [Bug c++/12824] New: throw catchpoint doesn't catch rethrows matz at suse dot de ` (3 preceding siblings ...) 2013-04-15 18:14 ` tromey at redhat dot com @ 2013-04-15 18:15 ` tromey at redhat dot com 4 siblings, 0 replies; 6+ messages in thread From: tromey at redhat dot com @ 2013-04-15 18:15 UTC (permalink / raw) To: gdb-prs http://sourceware.org/bugzilla/show_bug.cgi?id=12824 Tom Tromey <tromey at redhat dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED --- Comment #4 from Tom Tromey <tromey at redhat dot com> 2013-04-15 18:15:18 UTC --- Forgot to mark as fixed... -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-04-15 18:15 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2011-05-30 15:11 [Bug c++/12824] New: throw catchpoint doesn't catch rethrows matz at suse dot de 2013-02-25 18:51 ` [Bug c++/12824] " tromey at redhat dot com 2013-02-27 21:54 ` tromey at redhat dot com 2013-04-15 17:27 ` cvs-commit at gcc dot gnu.org 2013-04-15 18:14 ` tromey at redhat dot com 2013-04-15 18:15 ` tromey at redhat dot com
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).