aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2021-01-09 10:01:30 -0700
committerTom Tromey <tom@tromey.com>2021-01-09 10:01:30 -0700
commit66beed0227b1a9c29bcf22c47bd2803b5d595509 (patch)
tree5f5aa4194aa468af8209c09f90107b3a4ade47b1 /gdb
parentaf019bfde9b13d628202fe58054ec7ff08d92a0f (diff)
downloadfsf-binutils-gdb-66beed0227b1a9c29bcf22c47bd2803b5d595509.zip
fsf-binutils-gdb-66beed0227b1a9c29bcf22c47bd2803b5d595509.tar.gz
fsf-binutils-gdb-66beed0227b1a9c29bcf22c47bd2803b5d595509.tar.bz2
Fix erroneous agent expression test
Testing of the expression rewrite revealed a buglet in ax.exp. One test does: gdb_test "maint agent (unsigned char)1L" ".*ext 8.*" However, zero extension is not actually needed in this case -- a simple "const8 1" is also correct here. This patch changes the test to look for a push of any width of the constant 1. gdb/testsuite/ChangeLog 2021-01-09 Tom Tromey <tom@tromey.com> * gdb.trace/ax.exp: Do not require an "ext".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.trace/ax.exp2
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index fcca049..03593c5 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2021-01-09 Tom Tromey <tom@tromey.com>
+
+ * gdb.trace/ax.exp: Do not require an "ext".
+
2021-01-08 Tom Tromey <tromey@adacore.com>
* gdb.ada/voidctx/pck.adb: New file.
diff --git a/gdb/testsuite/gdb.trace/ax.exp b/gdb/testsuite/gdb.trace/ax.exp
index f4d1ec7..f5dfbb5 100644
--- a/gdb/testsuite/gdb.trace/ax.exp
+++ b/gdb/testsuite/gdb.trace/ax.exp
@@ -86,7 +86,7 @@ gdb_test "maint agent &gdb_long_test == &gdb_short_test" ""
gdb_test "maint agent &gdb_long_test < &gdb_short_test" ""
-gdb_test "maint agent (unsigned char)1L" ".*ext 8.*"
+gdb_test "maint agent (unsigned char)1L" ".*const.* 1.*"
# Now test eval version of agent expressions.