This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

c++/2494: catch catch and catch throw restore control of the inferior inside libstd exception handler and throw code.


>Number:         2494
>Category:       c++
>Synopsis:       catch catch and catch throw restore control of the inferior inside libstd exception handler and  throw code.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Aug 05 16:28:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     pmuldoon@redhat.com
>Release:        unknown-1.0
>Organization:
>Environment:

>Description:
catch catch - when the inferior enters an exception handler (in C++) "catch catch" returns control inside the __cxa_begin_catch code in libstdc++ library.

catch throw -  when the inferior throws an exception (in C++) "catch throw" returns control inside the __cxa_throw code in libstdc++ library.

Both of these occur as the "catch catch" and "catch  throw" operate by placing a breakpoint in __cxa_begin_catch and __cxa_throw libstdc++ functions respectively. While this is technically within "the code", it would be a better user experience to return control of the inferior at the line of the catch or throw, before it has executed the catch of throw.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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