Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* MI query questions
@ 2006-05-30  3:48 Bob Rossi
  2006-05-30  8:20 ` Daniel Jacobowitz
  2006-05-30 17:00 ` Nick Roberts
  0 siblings, 2 replies; 22+ messages in thread
From: Bob Rossi @ 2006-05-30  3:48 UTC (permalink / raw)
  To: gdb

Hi all,

I was looking at what else I need in MI working before I have a minimal
FE working properly. This is one area of concern to me.

This is from the console:

    (gdb) b A::func
    [0] cancel
    [1] all
    [2] A::func(float) at overloaded.cpp:8
    [3] A::func(int) at overloaded.cpp:7
    > q
    Arguments must be choice numbers.
    (gdb) q

This is from MI interp:
    (gdb)
    -break-insert A::func
    ~"[0] cancel\n[1] all\n"
    ~"[2] A::func(float) at overloaded.cpp:8\n"
    ~"[3] A::func(int) at overloaded.cpp:7\n"
    >

The first small issue is that the '[1] all\n' choice is on the same
line as the [0] choice. This may not be a problem at all, I'm not sure.
It looks as if this case would still output properly on the FE's console
window.

The second issue is how GDB outputs a final ">" line. This isn't a valid
GDB/MI Output record/command. At least, I don't think it is. If I select
an option, then I get this

> 1
^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x08048381",func="A::func(float)",file="overloaded.cpp",fullname="/home/bob/rcs/svn/cgdb/cgdb.mi/cgdb/tgdb/testsuite/tgdb.base/overloaded.cpp",line="8",times="0"},bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0804837b",func="A::func(int)",file="overloaded.cpp",fullname="/home/bob/rcs/svn/cgdb/cgdb.mi/cgdb/tgdb/testsuite/tgdb.base/overloaded.cpp",line="7",times="0"}
(gdb)

Which looks pretty good to me. So the problem is, the line ">"
apparently means to get input from the user. This isn't specified in the
MI OUTPUT record. Should we change the OUTPUT record to represent
interactive commands?

Has someone else already thought about a good way to handle this?

Thanks,
Bob Rossi


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

end of thread, other threads:[~2006-06-01  0:58 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-30  3:48 MI query questions Bob Rossi
2006-05-30  8:20 ` Daniel Jacobowitz
2006-05-30 17:15   ` Jim Ingham
2006-05-30 17:41     ` Bob Rossi
2006-05-30 17:53       ` Jim Ingham
2006-05-30 17:55         ` Jim Ingham
2006-05-30 17:55           ` Bob Rossi
2006-05-30 18:12             ` Daniel Jacobowitz
2006-05-30 20:14             ` Jim Ingham
2006-05-30 18:27               ` Bob Rossi
2006-05-30 18:56                 ` Jim Ingham
2006-05-30 20:46                   ` Bob Rossi
2006-05-30 21:11                     ` Jim Ingham
2006-05-30 21:15                       ` Daniel Jacobowitz
2006-05-30 21:30                         ` Jim Ingham
2006-05-31  9:38                           ` Daniel Jacobowitz
2006-05-31 13:27                             ` Bob Rossi
2006-05-30 17:00 ` Nick Roberts
2006-05-30 17:32   ` Bob Rossi
2006-05-31 10:29     ` Nick Roberts
2006-05-31 13:25       ` Bob Rossi
2006-06-01  0:58         ` Nick Roberts

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