* [ob/pushed] Tidy gdb.base/parse_number.exp
@ 2022-04-13 9:19 Pedro Alves
0 siblings, 0 replies; only message in thread
From: Pedro Alves @ 2022-04-13 9:19 UTC (permalink / raw)
To: gdb-patches
Now that Ada is able to parse & print 0xffffffffffffffff (2^64-1) in
hex, move it to the else branch like most other languages.
Change-Id: Ib305f6bb2b6b230a1190ea783b245b865821094c
---
gdb/testsuite/gdb.base/parse_number.exp | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/gdb/testsuite/gdb.base/parse_number.exp b/gdb/testsuite/gdb.base/parse_number.exp
index dc6d358ca48..e911cc0fdfb 100644
--- a/gdb/testsuite/gdb.base/parse_number.exp
+++ b/gdb/testsuite/gdb.base/parse_number.exp
@@ -27,10 +27,7 @@ proc test_parse_numbers {} {
gdb_test_no_output "set language $lang"
set val "0xffffffffffffffff"
- if {$lang == "ada"} {
- gdb_test "p/x $val" " = 0xffffffffffffffff"
- gdb_test "ptype $val" " = <8-byte integer>"
- } elseif {$lang == "fortran"} {
+ if {$lang == "fortran"} {
gdb_test "p/x $val" " = 0xffffffff"
gdb_test "ptype $val" " = unsigned int"
} elseif {$lang == "modula-2"} {
@@ -40,7 +37,9 @@ proc test_parse_numbers {} {
"expression parsing not implemented for language \"Unknown\""
} else {
gdb_test "p/x $val" " = $val"
- if {$lang == "d"} {
+ if {$lang == "ada"} {
+ gdb_test "ptype $val" " = <8-byte integer>"
+ } elseif {$lang == "d"} {
gdb_test "ptype $val" " = ulong"
} elseif {$lang == "rust"} {
gdb_test "ptype $val" " = i64"
base-commit: 10c0005660cda5ff317da5834e919ce99e517c0e
--
2.26.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-13 9:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-13 9:19 [ob/pushed] Tidy gdb.base/parse_number.exp Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).