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: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 1 Jan 2007 11:19:15 -0500
- Subject: Re: [RFC/RFA] Add support for catch Ada exceptions
- References: <20061230032111.GB27642@adacore.com> <20061231213707.GA26604@nevyn.them.org> <20070101044301.GF3428@adacore.com>
On Mon, Jan 01, 2007 at 08:43:01AM +0400, Joel Brobecker wrote:
> It would be nice indeed if the same command was able to handle exceptions
> from both languages. I think that we should postpone this for a little
> later, though. From what I've seen in the GDB code, we would need to
> create breakpoints with multiple locations.
Correct. Or, multiple hidden "internal" breakpoints (negative indexes)
corresponding to the user visible catchpoint. But it's probably easier
to wait until support for breakpoints with multiple locations is more
ready.
> What we can do, however, when we are able to have the same command
> handle both C++ and Ada exception is have one be the alias of the other.
> That way, both C++ and Ada programers have a command that feels natural
> to them.
Yes, that's exactly what I would recommend. I understand the value of
the terms you've got.
> Implementing the equivalent of "catch catch" for Ada is not possible
> at the moment, not using breakpoints. We do not have a marker we can
> break on like you do in C++.
OK; thanks for checking.
> Hiding the condition is not a big deal. If needed, I can use a bit
> from the breakpoint flag, don't you think.
I didn't even know that was there. Yes, that would be fine. I would
recommend separating it into a bitfield, too.
--
Daniel Jacobowitz
CodeSourcery