From ce75a98f1405a2f0929e02fb5e92284c018b5532 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Wed, 30 Jan 2008 18:48:07 +0000 Subject: [PATCH] * gdb.base/ptype.exp: Add testing of "ptype $pc". --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/gdb.base/ptype.exp | 3 +++ 2 files changed, 7 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 4d8060fe9e5..bdb58a9d665 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2008-01-30 Joel Brobecker + + * gdb.base/ptype.exp: Add testing of "ptype $pc". + 2008-01-30 Nick Roberts * 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 6a3157614ce..10272c87021 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" } -- 2.30.2