This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] gdb: add "-a" option for inferior commands
- From: Spencer Baugh <sbaugh at catern dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 22 Feb 2017 16:06:12 -0500
- Subject: Re: [PATCH] gdb: add "-a" option for inferior commands
- Authentication-results: sourceware.org; auth=none
- References: <20161229205458.319-1-sbaugh@catern.com> <87vau2h0wl.fsf@linux-m68k.org> <87poia7st3.fsf@catern.com> <8737f6o9xk.fsf@linux-m68k.org>
Andreas Schwab <schwab@linux-m68k.org> writes:
> On Feb 21 2017, Spencer Baugh <sbaugh@catern.com> wrote:
>
>> Andreas Schwab <schwab@linux-m68k.org> writes:
>>> On Dez 29 2016, Spencer Baugh <sbaugh@catern.com> wrote:
>>>
>>>> @@ -1055,8 +1101,8 @@ as main program."));
>>>> set_cmd_completer (c, filename_completer);
>>>>
>>>> add_com ("remove-inferiors", no_class, remove_inferior_command, _("\
>>>> -Remove inferior ID (or list of IDs).\n\
>>>> -Usage: remove-inferiors ID..."));
>>>> +Remove inferior ID (or list of IDs, or all inferiors with -a).\n\
>>>> +Usage: remove-inferiors [-a] ID..."));
>>>
>>> What is the meaning of ID if -a is present?
>>
>> ID is ignored if -a is present.
>
> Shouldn't ID be optional then?
Like this then?
Usage: remove-inferiors [-a] [ID...]
I was just concerned that that doesn't indicate that one of them must be
present. Not sure what the convention is to indicate that.