Re: GDB version as convenience variable

Simon Marchi
2019-03-25T18:51:41Z

On 2019-03-25 14:43, Eli Zaretskii wrote:
>> Date: Mon, 25 Mar 2019 14:33:55 -0400
>> From: Simon Marchi <simark@simark.ca>
>> Cc: gdb-patches@sourceware.org, brobecker@adacore.com
>>
>> > Hmm... how would you test that?
>>
>> Something like
>>
>> gdb_test "print \$_gdb_major" " = 8"
>> gdb_test "print \$_gdb_minor" " = 4"
>
> This would require changes with each new version. I thought you had
> in mind comparison with output of "gdb --version", suitably edited.

Yes, that's why I wondered initially if it was worth adding a test like
this, since it would impose an additional burden on the person doing the
release. However, comparing the output with gdb --version, or some
other automated mean, would be perfect.

Simon