[gdb/testsuite] Use hex_for_lang in gdb.base/parse_number.exp
authorTom de Vries <tdevries@suse.de>
Wed, 18 May 2022 10:12:29 +0000 (12:12 +0200)
committerTom de Vries <tdevries@suse.de>
Wed, 18 May 2022 10:12:29 +0000 (12:12 +0200)
commit71630188adffa1222ff3341b54700f537e0f2e07
treef03a90db4446c700dc04b1e96a6f107546b0945f
parent192257c998507f8a6ad9a85394b4fd4c627552cb
[gdb/testsuite] Use hex_for_lang in gdb.base/parse_number.exp

In gdb.base/parse_number.exp, add a new proc hex_for_lang that formats a hex
number appropriately for a given language.

Tested on x86_64-linux.
gdb/testsuite/gdb.base/parse_number.exp