This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] New GDB/MI command "-info-gdb-mi-command"
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: tromey at redhat dot com, gdb-patches at sourceware dot org
- Date: Tue, 12 Nov 2013 20:13:06 +0200
- Subject: Re: [RFC] New GDB/MI command "-info-gdb-mi-command"
- Authentication-results: sourceware.org; auth=none
- References: <8761rzknb4 dot fsf at fleche dot redhat dot com> <1384255504-28444-1-git-send-email-brobecker at adacore dot com> <83siv11soi dot fsf at gnu dot org> <20131112174319 dot GE3481 at adacore dot com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> 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.