Re: Improve GDB's first user experience by reducing "print_gdb_version" output

Guinevere Larsen via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
On 5/28/25 9:19 AM, Eli Zaretskii wrote:
>> Date: Wed, 28 May 2025 09:33:09 +0200
>> Cc: Guinevere Larsen <[email protected]>,
>>   "[email protected]" <[email protected]>
>> From: Phi Debian via Gdb <[email protected]>
>>
>> FWIW lldb produce nothing
>>
>> $ lldb ./hw
>> (lldb) target create "./hw"
>> Current executable set to '/tmp/hw' (x86_64).
>> (lldb)
>>
>>
>> One could argue LLVM series is not GNU yet GCC don't produce nothing either
>> (even with -v)
> Unlike GDB, GCC is not an interactive program, so it produces this
> information in the output of "gcc --version" and "gcc --help".
>
>> The proposed minimal greeting is nice, or can be push further with no
>> greeting at all (like lldb) assuming gdb --help or man gdb would be the
>> starting point leading to apropos...
> That'd be going too far, IMO.
>
Using -q or --quiet already does this, so we already allow this for 
users who would like a completely silent start (I personally have `alias 
gdb='gdb -q'` in my bashrc).

I agree that having this be the default behavior is too far. If 
anything, I'd like to tutorialize GDB a little bit more, and completely 
hiding the helpful parts of the initial message is the opposite of what 
I hope to accomplish.

-- 
Cheers,
Guinevere Larsen
She/Her/Hers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.