diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2008-07-14 18:28:57 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2008-07-14 18:28:57 +0000 |
commit | 7093c834d701edb312386d6953c47c50924a2628 (patch) | |
tree | 55141ad44cc3308fbd2546024b55d1da61ea8db1 /gdb/testsuite/gdb.cp/class2.exp | |
parent | 5651477109e89a1a78c5c28cfac55c6141000754 (diff) | |
download | gdb-7093c834d701edb312386d6953c47c50924a2628.zip gdb-7093c834d701edb312386d6953c47c50924a2628.tar.gz gdb-7093c834d701edb312386d6953c47c50924a2628.tar.bz2 |
Fix for PR gdb/2477
Diffstat (limited to 'gdb/testsuite/gdb.cp/class2.exp')
-rw-r--r-- | gdb/testsuite/gdb.cp/class2.exp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.cp/class2.exp b/gdb/testsuite/gdb.cp/class2.exp index 4ae0947..d39130d 100644 --- a/gdb/testsuite/gdb.cp/class2.exp +++ b/gdb/testsuite/gdb.cp/class2.exp @@ -117,3 +117,10 @@ gdb_test "print * (B *) abp" \ # Printing the value of an object containing no data fields: gdb_test "p e" "= \{<No data fields>\}" "print object with no data fields" + +# Printing NULL pointers with "set print object on" + +gdb_test "set print object on" "" +gdb_test "p acp" "= \\(C \\*\\) 0x\[a-f0-9\]+" +gdb_test "p acp->c1" "\\(A \\*\\) 0x0" +gdb_test "p acp->c2" "\\(A \\*\\) 0xf+" |