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: Jerome Guitton <guitton at adacore dot com>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, gdb-patches at sourceware dot org
- Date: Wed, 2 Oct 2013 10:59:07 +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> <20131001155509 dot GH2840 at adacore dot com>
Joel Brobecker (brobecker@adacore.com):
> > I'm curious why it doesn't make a pending breakpoint.
> > This is, in effect, what "catch catch" and "catch throw" do.
>
> 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.
There could be a problem for configurations where exception
propagation is not supported. In such a case, the Ada run-time lib
does not contain __gnat_debug_raise_exception. So here having a error
message would be better than silently accepting the command and adding
a pending breakpoint that would never be resolved.