This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit/Ada] wrong "catch exception" error message when finding trampoline msym.
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Tom Tromey <tromey at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 1 Oct 2013 17:55:09 +0200
- Subject: Re: [commit/Ada] wrong "catch exception" error message when finding trampoline msym.
- Authentication-results: sourceware.org; auth=none
- References: <1380618880-28301-1-git-send-email-brobecker at adacore dot com> <87bo3980c9 dot fsf at fleche dot redhat dot com>
> Joel> When building the program with the shared GNAT runtime, the debugger
> Joel> is unable to insert Ada exception catchpoints until that runtime
> Joel> has been mapped to memory. In other words, we expect the user to start
> Joel> the program first, before attempting to insert that catchpoint.
>
> I'm curious why it doesn't make a pending breakpoint.
> This is, in effect, what "catch catch" and "catch throw" do.
>
> It's done manually there, by supplying a re_set method.
> See break-catch-throw.c:re_set_exception_catchpoint.
Thanks for the tip. We've never looked at this mostly because no one
has ever asked for it. I will keep that in mind, though.
--
Joel