Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* [MI] -break-insert: (a)synchronous?
@ 2002-06-13 13:55 Keith Seitz
  2002-06-13 17:30 ` Andrew Cagney
  0 siblings, 1 reply; 7+ messages in thread
From: Keith Seitz @ 2002-06-13 13:55 UTC (permalink / raw)
  To: gdb

Hi,

Ok, I believe that there was some general consensus that we want
asynchronus event notifications. Do we also want only one channel for the
notification of these events?

It seems to me that we've got ways to communicate the breakpoint-create
event: events and commands. Right now, -break-insert overrides the event
handlers so that it can grab the data about the breakpoint when it is
created, but inserting a breakpoint via another interpreter (like the
console) will send something slightly different:

(gdb)
-break-insert main
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x08075056",func="main",file="../../src/gdb/main.c",line="734",times="0"}
(gdb)
-interpreter-exec console "break captured_main"
During symbol reading, couldn't parse type; debugger out of date?.
During symbol reading, bad structure-type format.
*"breakpoint-create,number=1"
Breakpoint 1 at 0x80743ba: file ../../src/gdb/main.c, line 122.
^done
(gdb)

(Ok, so we could also just add the "bkpt=..." info that is being used in
-break-insert onto this command, but in any case, we get no "event" when
inserting via -break-insert.)

I would prefer that we use only event notifications, of course.

That way, the the UI could call -break-info on these events to collect
the information. This way, I only have to write one parser to deal with this
event. (Actually, if I had to deal with both, I would just grab the
breakpoint number from the output of -break-insert.)

Am I being too aggressive/naive?
Keith


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

end of thread, other threads:[~2002-06-14 18:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-13 13:55 [MI] -break-insert: (a)synchronous? Keith Seitz
2002-06-13 17:30 ` Andrew Cagney
2002-06-13 19:27   ` Keith Seitz
2002-06-14  9:33     ` Andrew Cagney
2002-06-14 10:49       ` Keith Seitz
2002-06-14 11:23         ` Daniel Jacobowitz
2002-06-14 11:48           ` Andrew Cagney

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