* gdb.base/ptype.exp: Add testing of "ptype $pc".

This commit is contained in:
Joel Brobecker 2008-01-30 18:48:07 +00:00
parent 80f064a256
commit ce75a98f14
2 changed files with 7 additions and 0 deletions

View 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

View 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"
}