Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Joel Brobecker <brobecker@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC/RFA] Add support for catch Ada exceptions
Date: Mon, 01 Jan 2007 16:19:00 -0000	[thread overview]
Message-ID: <20070101161914.GA13508@nevyn.them.org> (raw)
In-Reply-To: <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


  reply	other threads:[~2007-01-01 16:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-30  3:20 Joel Brobecker
2006-12-30 15:55 ` Eli Zaretskii
2006-12-31  4:39   ` Joel Brobecker
2006-12-31 21:37 ` Daniel Jacobowitz
2007-01-01  4:42   ` Joel Brobecker
2007-01-01 16:19     ` Daniel Jacobowitz [this message]
2007-01-02  6:06       ` [RFA] Add support for catch Ada exceptions (take 2) Joel Brobecker
2007-01-02  6:15         ` Joel Brobecker
2007-01-03  2:47           ` Daniel Jacobowitz
2007-01-04  5:32             ` Joel Brobecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070101161914.GA13508@nevyn.them.org \
    --to=drow@false.org \
    --cc=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox