This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 04/12] Update memattr.c help strings
- From: Tom Tromey <tom at tromey dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Wed, 09 May 2018 14:34:55 -0600
- Subject: Re: [RFA 04/12] Update memattr.c help strings
- References: <20180430143731.30007-1-tom@tromey.com> <20180430143731.30007-5-tom@tromey.com> <4ac45e86-d5c0-6f97-a72c-d6f0f79a3e26@redhat.com>
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>> add_cmd ("mem", class_vars, delete_mem_command, _("\
>> Delete memory region.\n\
>> Arguments are the code numbers of the memory regions to delete.\n\
>> -Usage: delete mem <code number>...\n\
>> +Usage: delete mem [CODE]...\n\
>> Do \"info mem\" to see current list of code numbers."), &deletelist);
>>
Pedro> I was surprised and confused with the references to "code" and
Pedro> "code numbers" here. These are just the numbers as displayed
Pedro> in the first column of "info mem", right? How about changing
Pedro> the references to "code numbers" and "CODE" above to
Pedro> numbers or IDs? The manuals uses "nums".
I went with IDs, like:
add_cmd ("mem", class_vars, delete_mem_command, _("\
Delete memory region.\n\
Arguments are the identifiers of the memory regions to delete.\n\
Usage: delete mem [ID]...\n\
Do \"info mem\" to see current list of IDs."), &deletelist);
Tom