This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GDB version as convenience variable


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]