diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-09-04 14:18:47 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-09-04 14:18:47 +0000 |
commit | 2025a643ef7edd04df5027888c2d4a030edfcd81 (patch) | |
tree | 33b7c8f1275c72e4160ac75d0ca2d431d33215dd /gdb/testsuite | |
parent | 0ad36c846abc2790c1cde2cd6d69831b413be2cf (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/display.exp | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ea16928..c453ab2 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2007-09-04 Daniel Jacobowitz <dan@codesourcery.com> + + * gdb.base/display.exp: Add tests for printf %p. + 2007-09-03 Pedro Alves <pedro_alves@portugalmail.pt> * gdb.base/unload.c (dlopen, dlsym): Use the TEXT macro to convert 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 # |