Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [commit/Ada] Special handling for predefined exceptions...
Date: Wed, 01 Oct 2008 16:51:00 -0000	[thread overview]
Message-ID: <20081001165057.GK3665@adacore.com> (raw)
In-Reply-To: <u63ockag4.fsf@gnu.org>

> > For Ada, we provide a command "catch exception [EXCEPTION_NAME]"
> > that stops the execution when an exception is raised. If an exception
> > name is specified in the command, then the debugger only stops when
> > a specific exception is raised.  The matching of the exception is
> > performed through an internal condition that looks like this:
> > 
> >     long_integer (e) = long_integer (&EXCEPTION_NAME)"
> > 
> > (where "e" is a parameter of the function where we inserted the
> > catchpoint that contains a pointer to the exception data).  The way
> > it works is: For every EXCEPTION_NAME, the compiler defines an entity
> > whose name is EXCEPTION_NAME (fully qualified). So when we want to
> > verify whether we have raised a given exception, we just verify that
> > its address is the address of the symbol whose name is EXCEPTION_NAME.
> 
> I'd love to have all this info somewhere in gdbint.texinfo.

I will oblige, if that's what you would like, but I would much, much,
rather put that in the code where it is easy to keep it synchronized
with the actual implementation.

I looked at the current gdbint.texinfo, and I think it would really
benefit from a section that explains how breakpoint_ops can be used
to implement specialized kinds of breakpoints like the Ada exception
catchpoints.  But this tiny extremely specific piece, IMO, belongs
with the code.

I guess we go back to the discussion of how much detail we want to
put in gdbint.texinfo.  I don't want to restart this dicussion, as
I think most people have their own opinion and all of them are fair.

Your call.

-- 
Joel


      reply	other threads:[~2008-10-01 16:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-30 20:53 Joel Brobecker
2008-10-01  8:06 ` Eli Zaretskii
2008-10-01 16:51   ` Joel Brobecker [this message]

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=20081001165057.GK3665@adacore.com \
    --to=brobecker@adacore.com \
    --cc=eliz@gnu.org \
    --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