public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* MI level command
@ 2004-07-08 23:33 Alain Magloire
  2004-07-09 20:49 ` Jason Molenda
  2004-08-24 22:04 ` Andrew Cagney
  0 siblings, 2 replies; 11+ messages in thread
From: Alain Magloire @ 2004-07-08 23:33 UTC (permalink / raw)
  To: gdb

Yellow


Scenario:  We want to know wich level of MI that we are currently working in.
  This can allow to adjust what MI command to use and how to parse them.

Problems: No such command in MI and no GDB variable that we can test via -gdb-show.
  The version of  gdb
     gdb --version
  show different things in different distributions, sometimes it is a number based on date
  etc ...

So would a patch implementing

 -gdb-mi-level
 ^done,level=1

be a good thing ?


^ permalink raw reply	[flat|nested] 11+ messages in thread
* Re: MI level command
@ 2004-07-11 22:49 Nick Roberts
  2004-07-12 21:14 ` Jason Molenda
  0 siblings, 1 reply; 11+ messages in thread
From: Nick Roberts @ 2004-07-11 22:49 UTC (permalink / raw)
  To: jmolenda; +Cc: alain, gdb


> > So would a patch implementing

> >  -gdb-mi-level
> >  ^done,level=1


> > be a good thing ?

> It would probably help some, but I don't see it as solving the problem. The MI
> version # changes very rarely, and individual MI commands can change quite a
> bit within a single MI version. On the good side, the changes to MI commands'
> output are mostly additional information that can be ignored if not recognized
> (and, hopefully, worked around if absent).

I agree. I don't have the resources to track different MI versions and hope
to make the transition from annotations to a stable MI.

> So anyway, Nick makes a similar change, but with the order of arguments being
> "SHOW-VALUE VAROBJ-HANDLE". Ouch. He also added the --no-values and
> --all-values command line arguments at the same time.

I think I *did* have the arguments the other way round initially and Andrew
Cagney advised me to reverse them. I may be wrong about that. In any case I
don't really care which order they are in but clearly there should be
consistency. Currently it seems to be a bit of a free for all but if Apple can
provide a more rigorous standard then I will be happy to try to follow it.

> I much prefer the -data-disassemble command where each piece of information is
> passed with a separate command argument flag (except for its "mixed mode"
> boolean integer as the optional last argument on the line, sigh).

This is one command I find awkward as it doesn't do what the CLI command
"disassemble" does. I guess it shows that we all want different things out
of the same interface.

Nick

^ permalink raw reply	[flat|nested] 11+ messages in thread
[parent not found: <20040709012815.GA4464@white>]

end of thread, other threads:[~2004-08-25 13:23 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-08 23:33 MI level command Alain Magloire
2004-07-09 20:49 ` Jason Molenda
2004-07-10 17:18   ` Arnaud Charlet
2004-07-10 22:51     ` Bob Rossi
2004-07-12 17:51   ` Alain Magloire
2004-08-24 22:04 ` Andrew Cagney
2004-08-24 23:54   ` Bob Rossi
2004-08-25 13:23   ` Alain Magloire
2004-07-11 22:49 Nick Roberts
2004-07-12 21:14 ` Jason Molenda
     [not found] <20040709012815.GA4464@white>
2004-07-12 17:38 ` Alain Magloire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).