From: Joel Brobecker Date: Wed, 30 Jan 2008 18:48:07 +0000 (+0000) Subject: * gdb.base/ptype.exp: Add testing of "ptype $pc". X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce75a98f1405a2f0929e02fb5e92284c018b5532;p=binutils-gdb.git * gdb.base/ptype.exp: Add testing of "ptype $pc". --- 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" }