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: [PATCH] gdb: add "-a" option for inferior commands


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.


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