This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Implement -thread-info.
- From: Vladimir Prus <vladimir at codesourcery dot com>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: Daniel Jacobowitz <drow at false dot org>, gdb-patches at sources dot redhat dot com, Eli Zaretskii <eliz at gnu dot org>
- Date: Sun, 23 Mar 2008 10:38:50 +0300
- Subject: Re: [RFA] Implement -thread-info.
- References: <200802171833.26673.vladimir@codesourcery.com> <20080226005822.GA3346@caradoc.them.org> <18405.58075.425704.501844@kahikatea.snap.net.nz>
On Sunday 23 March 2008 07:55:55 Nick Roberts wrote:
> Daniel Jacobowitz writes:
> > On Tue, Feb 26, 2008 at 01:53:16PM +1300, Nick Roberts wrote:
> > > + { "thread-info", { "info threads", 1 }, NULL, NULL },
> >
> > I would suggest against using args_p == 1 for any new commands.
> > The quoting rules between CLI and MI are different; we ignore that
> > for some commands, but it's a bug and it bites frontend
> > developers.
> >
> > If the arguments are just going to be integers then it doesn't
> > make much difference but it will make things simpler if we want to
> > add either quoted arguments or dashed options later.
>
> With non-stop mode there will presumably be many new MI commands.
Just one, I think -- to enable non-stop mode. Many commands will take
additional options, though.
> Providing the same functionality in CLI duplicates a lot of effort.
> Perhaps the parsing of MI and CLI arguments should be unified.
Are you suggesting that we continue to implement MI commands by
basically executing the corresponding CLI command?
- Volodya