Re: [RFC] New GDB/MI command "-info-gdb-mi-command"

Eli Zaretskii
2013-11-12T18:13:21Z

> Date: Tue, 12 Nov 2013 21:43:19 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: tromey@redhat.com, gdb-patches@sourceware.org
>
> > > +There is no corresponding @value{GDBN} command.
> >
> > Having a way of querying that in CLI would facilitate better .gdbinit
> > files, I think.
>
> Can you give some ideas as to how it would be used.

Like this perhaps:

if ($_featurep(FOO))
lets-use-FOO
end

> Remember also that you can always execute a GDB/MI command from CLI
> using "interpreter-exec".

But their output is not easily caught and used like above.