This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/RFA] Add support for catch Ada exceptions
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Eli Zaretskii <eliz at gnu dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Sun, 31 Dec 2006 08:40:20 +0400
- Subject: Re: [RFC/RFA] Add support for catch Ada exceptions
- References: <20061230032111.GB27642@adacore.com> <ubqll2xap.fsf@gnu.org>
> > (gdb) catch exception
> > Catchpoint 1 on all Ada exceptions at 0x804b7c0
> > (gdb) info break
> > Num Type Disp Enb Address What
> > 1 catch exception keep y 0x0804b7c0 on all Ada exceptions
>
> I don't like this ``on'' business. How about removing it?
Sure, that's a good idea.
> > (gdb) catch exception unhandled
> > Catchpoint 3 on unhandled Ada exceptions at 0x804ad2d
>
> Again, removing the ``on'' part makes it sound better, IMO:
>
> (gdb) catch exception program_error
> Catchpoint 1: `program_error' Ada exception at 0x804b7c0
Ditto.
> Btw, do we need to display the address? The fact that you actually
> implement this as breakpoints is an implementation detail; the user
> doesn't need to know, I think.
You are right, displaying the addresses can be confusing.
I will resend a new patch shortly... Thanks for the feedback!
--
Joel