Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Joel Brobecker <brobecker@adacore.com>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: GDB/MI design question re: Ada exception catchpoints
Date: Thu, 10 Mar 2011 11:51:00 -0000	[thread overview]
Message-ID: <20110310101205.GX30306@adacore.com> (raw)
In-Reply-To: <201103100948.15977.vladimir@codesourcery.com>

> That seems totally reasonable for me.

Cool, thanks.

> I assume that for Ada catchpoints, "-break-list" lists some special
> type?

Not a special type, no, but a special "what":

    bkpt={number="1",type="breakpoint",
          disp="keep",enabled="y",addr="0x000000000040527c",
          what="all Ada exceptions",
          times="0",original-location="__gnat_debug_raise_exception"}

the key elements are type="breakpoint", and what="all Ada exceptions".
It's the same for "C++ exception catchpoints":

    bkpt={number="2",type="breakpoint",
          disp="keep",enabled="y",addr="[...]",
          what="exception catch",times="0",
          original-location="__cxa_begin_catch"}

So, the FE has to determine by itself what type of "breakpoint"
this is by looking at the "what"...

Thanks for the feedback, I'll try to come up with a patch sometime
soon.

-- 
Joel


      reply	other threads:[~2011-03-10 10:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-09  6:27 Joel Brobecker
2011-03-10 10:12 ` Vladimir Prus
2011-03-10 11: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=20110310101205.GX30306@adacore.com \
    --to=brobecker@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=vladimir@codesourcery.com \
    /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