Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* need to define GDB/MI commands for Ada exception catchpoints
@ 2011-03-10 12:09 Joel Brobecker
  2011-03-11  0:19 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Joel Brobecker @ 2011-03-10 12:09 UTC (permalink / raw)
  To: gdb-patches, vladimir

While discussing the MI output for Ada exception catchpoint hits,
I was wondering if we shouldn't just implement the MI equivalent
of our "catch exception" commands.

We have several commands:

  - catch exception [EXCEPTION_NAME]
    If used with a parameter, stop only when EXCEPTION_NAME is raised.
    Otherwise stop when any exception is raised.
    
  - catch exception unhandled
    Stop only if an unhandled exception is raised (thus eventually
    causing the termination of the task).

  - catch assert
    Stop if an assertion failure exception is raised.

There are other catch comments, and I am not sure that we have
implemented the MI equivalent on any of them. I couldn't find
the equivalent of "catch catch" or "catch throw", for instance.

Do we want to implement one MI command for all, or on MI command
for each type of catchpoint? As far as the Ada side is concerned,
I don't see a reason either way.

The most native design is just to have a 1:1 mapping between
the CLI command and the GDB/MI command, thus I'm proposing
(adding Ada in the name to make it clearer):

  -catch-ada-exception [EXCEPTION_NAME]
  -catch-unhandled-ada-exception
  -catch-ada-assert

There is no "prior art" that might compel us to choose certain
names or solutions in order to help compatibility, so we can do
whatever we think is best.

WDYT?

Thank you,
-- 
Joel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: need to define GDB/MI commands for Ada exception catchpoints
  2011-03-10 12:09 need to define GDB/MI commands for Ada exception catchpoints Joel Brobecker
@ 2011-03-11  0:19 ` Tom Tromey
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2011-03-11  0:19 UTC (permalink / raw)
  To: Joel Brobecker; +Cc: gdb-patches, vladimir

>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> While discussing the MI output for Ada exception catchpoint hits,
Joel> I was wondering if we shouldn't just implement the MI equivalent
Joel> of our "catch exception" commands.

Joel> The most native design is just to have a 1:1 mapping between
Joel> the CLI command and the GDB/MI command, thus I'm proposing
Joel> (adding Ada in the name to make it clearer):

I think this is fine.

Tom


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-10 21:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-10 12:09 need to define GDB/MI commands for Ada exception catchpoints Joel Brobecker
2011-03-11  0:19 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox