aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/display.exp
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-09-04 14:18:47 +0000
committerDaniel Jacobowitz <drow@false.org>2007-09-04 14:18:47 +0000
commit2025a643ef7edd04df5027888c2d4a030edfcd81 (patch)
tree33b7c8f1275c72e4160ac75d0ca2d431d33215dd /gdb/testsuite/gdb.base/display.exp
parent0ad36c846abc2790c1cde2cd6d69831b413be2cf (diff)
downloadgdb-2025a643ef7edd04df5027888c2d4a030edfcd81.zip
gdb-2025a643ef7edd04df5027888c2d4a030edfcd81.tar.gz
gdb-2025a643ef7edd04df5027888c2d4a030edfcd81.tar.bz2
* printcmd.c (printf_command): Handle ptr_arg. Correct typo
in internal error message. * gdb.base/display.exp: Add tests for printf %p.
Diffstat (limited to 'gdb/testsuite/gdb.base/display.exp')
-rw-r--r--gdb/testsuite/gdb.base/display.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/display.exp b/gdb/testsuite/gdb.base/display.exp
index 653b5d9..254c431 100644
--- a/gdb/testsuite/gdb.base/display.exp
+++ b/gdb/testsuite/gdb.base/display.exp
@@ -178,6 +178,8 @@ gdb_test "printf \"\\\\!\\a\\f\\r\\t\\v\\b\\n\"" ".*!.*"
gdb_test "printf \"\"" ".*" "re-set term"
gdb_test "printf \"\\w\"" ".*Unrecognized escape character.*"
gdb_test "printf \"%d\" j" ".*Invalid argument syntax.*"
+gdb_test "printf \"%p\\n\", 0" "\\(nil\\)"
+gdb_test "printf \"%p\\n\", 1" "0x1"
# play with "print", too
#