aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-01-30 18:48:07 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-01-30 18:48:07 +0000
commitce75a98f1405a2f0929e02fb5e92284c018b5532 (patch)
tree46570fe2102d37dc01bb4c7658abd8685cfdb94e /gdb
parent80f064a256d119c77a33e01cf86f346240493b76 (diff)
downloadgdb-ce75a98f1405a2f0929e02fb5e92284c018b5532.zip
gdb-ce75a98f1405a2f0929e02fb5e92284c018b5532.tar.gz
gdb-ce75a98f1405a2f0929e02fb5e92284c018b5532.tar.bz2
* gdb.base/ptype.exp: Add testing of "ptype $pc".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.base/ptype.exp3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 4d8060f..bdb58a9 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,7 @@
+2008-01-30 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.base/ptype.exp: Add testing of "ptype $pc".
+
2008-01-30 Nick Roberts <nickrob@snap.net.nz>
* gdb.mi/mi-file.exp, gdb.mi/mi2-file.exp
diff --git a/gdb/testsuite/gdb.base/ptype.exp b/gdb/testsuite/gdb.base/ptype.exp
index 6a31576..10272c8 100644
--- a/gdb/testsuite/gdb.base/ptype.exp
+++ b/gdb/testsuite/gdb.base/ptype.exp
@@ -639,4 +639,7 @@ if [runto_main] then {
gdb_test "ptype {{0,1,2},{3,4,5}}" "type = int \\\[2\\\]\\\[3\\\]"
gdb_test "ptype {4,5,6}\[2\]" "type = int"
gdb_test "ptype *&{4,5,6}\[1\]" "type = int"
+
+ # Test ptype of user register
+ gdb_test "ptype \$pc" "void \\(\\*\\)\\(\\)" "ptype \$pc"
}