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".
This commit is contained in:
Tom Tromey 2021-01-09 10:01:30 -07:00
parent af019bfde9
commit 66beed0227
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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.