This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: GDB/MI design question re: Ada exception catchpoints
> 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