diff options
-rw-r--r-- | gdb/testsuite/gdb.base/printcmds.exp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/printcmds.exp b/gdb/testsuite/gdb.base/printcmds.exp index 13479ab..8aaf6d2 100644 --- a/gdb/testsuite/gdb.base/printcmds.exp +++ b/gdb/testsuite/gdb.base/printcmds.exp @@ -785,6 +785,7 @@ proc test_print_string_constants {} { } proc test_print_array_constants {} { + global hex if [target_info exists gdb,cannot_call_functions] { unsupported "this target can not call functions" @@ -803,7 +804,8 @@ proc test_print_array_constants {} { gdb_test "print *&{4,5,6}\[1\]" "Attempt to take address of value not located in memory." # This used to cause a crash. - gdb_test "print {unsigned char[]}{65}" " = 65 'A'" + set val [string_to_regexp {"\377\377\377\377"}] + gdb_test "print {unsigned char\[\]}{0xffffffff}" " = $val" } proc test_print_enums {} { |