This is the mail archive of the gdb-patches@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]

Re: [RFC/RFA] Add support for catch Ada exceptions


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


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