Re: GDB version as convenience variable

Simon Marchi
2019-03-25T18:37:43Z

On 2019-03-25 14:33, Simon Marchi wrote:
> On 2019-03-25 14:10, Eli Zaretskii wrote:
>>> Is it worth having a test for that?
>>
>> Hmm... how would you test that?
>
> Something like
>
> gdb_test "print \$_gdb_major" " = 8"
> gdb_test "print \$_gdb_minor" " = 4"
>
> Simon

Or, the test could somehow automatically get the current version of GDB
and compare $_gdb_major/$_gdb_minor against that, so that we don't need
to modify it at every release.

Simon