* bob@brasko.net: Re: MI level command
@ 2004-07-09 11:34 Bob Rossi
0 siblings, 0 replies; only message in thread
From: Bob Rossi @ 2004-07-09 11:34 UTC (permalink / raw)
To: gdb
On Thu, Jul 08, 2004 at 07:33:17PM -0400, Alain Magloire wrote:
> 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 ?
I like this idea a lot. I will need it when I start getting more work
done on TGDB. However, there is another DRY problem. What functions act
which way for which level?
Basically, should every front end understand that
-file-list-exec-source-files outputs just the files for level 1 but it
also outputs the libraries the files belong to in level2?
One solution could be, for every MI function, we could generate a unique
key. For example, mi1-file-list-exec-source-files,
mi2-file-list-exec-source-files, ...
This key would tell the front end to use that particular parsing
function when checking the output of -file-list-exec-source-files.
Is this to wacky?
Thanks,
Bob Rossi
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-07-09 11:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-09 11:34 bob@brasko.net: Re: MI level command Bob Rossi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox