* gdb.base/ptype.exp: Add testing of "ptype $pc".
authorJoel Brobecker <brobecker@gnat.com>
Wed, 30 Jan 2008 18:48:07 +0000 (18:48 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 30 Jan 2008 18:48:07 +0000 (18:48 +0000)
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/ptype.exp

index 4d8060fe9e5482bdd05b003c0ee4287ebef33d7d..bdb58a9d6656562756e7918237ba5431593c0a58 100644 (file)
@@ -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
index 6a3157614cec6d026121ed54aad390ac8fb151a7..10272c8702148a86f2c5a75e6a7db2073bc6d149 100644 (file)
@@ -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"
 }
This page took 0.039865 seconds and 4 git commands to generate.