This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Implement -thread-info.


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]