diff options
author | Tom Tromey <tromey@redhat.com> | 2010-01-25 19:31:24 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-01-25 19:31:24 +0000 |
commit | 421d5d99a304a36cd40126d1e155bb23a8cee02d (patch) | |
tree | 1406b1cacf262e5a310daab57d05f5e16bb377a9 /gdb/testsuite/gdb.base/printcmds.exp | |
parent | 2aa2364a8901583a5d0ffbbf64e7baed4a52f4e1 (diff) | |
download | gdb-421d5d99a304a36cd40126d1e155bb23a8cee02d.zip gdb-421d5d99a304a36cd40126d1e155bb23a8cee02d.tar.gz gdb-421d5d99a304a36cd40126d1e155bb23a8cee02d.tar.bz2 |
gdb
PR gdb/11049:
* c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
result.
gdb/testsuite
PR gdb/11049:
* gdb.base/printcmds.exp (test_print_typedef_arrays): Add test
with "set print null-stop on".
Diffstat (limited to 'gdb/testsuite/gdb.base/printcmds.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/printcmds.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/printcmds.exp b/gdb/testsuite/gdb.base/printcmds.exp index 74ea6ed..2f4b0cc 100644 --- a/gdb/testsuite/gdb.base/printcmds.exp +++ b/gdb/testsuite/gdb.base/printcmds.exp @@ -582,6 +582,11 @@ proc test_print_typedef_arrays {} { " = \"abcd\"" gdb_test "p a2\[0\]" " = 97 'a'" gdb_test "p a2\[3\]" " = 100 'd'" + + # Regression test of null-stop; PR 11049. + gdb_test "set print null-stop on" "" + gdb_test "p a2" " = \"abcd\"" "print a2 with null-stop on" + gdb_test "set print null-stop off" "" } proc test_artificial_arrays {} { |