[MI] Synchronous event notification

Keith Seitz keiths@redhat.com
Fri May 24 15:31:00 GMT 2002


On Fri, 24 May 2002 thomson@ca.ibm.com wrote:

>    result ==>
>       stuff  ( "," event ) *
>    event ==>
>       "MI_HOOK_RESULT=[HOOK_TYPE=" event-name [ event-data ] "]"

Yes, that's right. My boo-boo.

> That means there are several
> ways a UI is notified of breakpoint creation
>
> after -break-insert, you get
>      ^done,bkpt=[number="1",type="breakpoint", ...]
>
> after -interpreter-exec console "break ...", or
> using -interpreter-exec to run a user defined command
> or script that creates breakpoints, you are proposing
>      ^done,event=[name="breakpoint_create", ...]
>
> from a breakpoint command list (e.g. enable bkpt 2
> after bkpt 1 is hit 100 times) ...

Right. See my follow-up message to Andrew. I would like to reduce this all
to async event notification. (Well, initially we'll probably just leave
this specific thing alone. MI parsers could just ignore it.)

> As consumers, we would prefer to have one notification
> that is reliable and consistent.

Me, too. :-)

> Are you also looking at the other, non-event hooks
> Apple introduced?

I will be eventually. Right now it's back to basics. All the hooks will be
turned into events (as far as possible).

Keith




More information about the Gdb mailing list