[PATCH 2/3] gdb/cli: Improve UX when using list with no args

Bruno Larsen blarsen@redhat.com
Tue Jun 20 13:46:20 GMT 2023


On 20/06/2023 15:43, Eli Zaretskii wrote:
>> Cc: Bruno Larsen <blarsen@redhat.com>
>> Date: Tue, 20 Jun 2023 14:29:12 +0200
>> From: Bruno Larsen via Gdb-patches <gdb-patches@sourceware.org>
>>
>> --- a/gdb/NEWS
>> +++ b/gdb/NEWS
>> @@ -78,6 +78,11 @@
>>     functionality is also available for dprintf when dprintf-style is
>>     'gdb'.
>>   
>> +* Using the 'list' command with no arguments in a situation where the
>> +  command would attempt to list past the end of the file, instead of
>> +  erroring out, it will now warn the user that the end of file has been
>> +  reached and the default location.
>               ^^^^^^^^^^^^^^^^^^^^^^^^
> What is that "and the default location" part about?  It looks
> misplaced.
>
Oops. It is incomplete. It should have been "And the default location 
will be printed", default location being either where the inferior is 
(if it has started already) or around the main function.

-- 
Cheers,
Bruno



More information about the Gdb-patches mailing list