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.


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.  Providing
the same functionality in CLI duplicates a lot of effort.  Perhaps the parsing
of MI and CLI arguments should be unified.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


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