gdb/ChangeLog: * c-typeprint.c (c_type_print_varspec_prefix): Pass through the passed_a_ptr flag when displaying typedef types. gdb/testsuite/ChangeLog: * gdb.base/ptype.exp: Test ptype on a pointer to a typedef.
This commit is contained in:
parent
5c7a0b3ee7
commit
350b1b266b
|
@ -1,3 +1,8 @@
|
|||
2012-09-11 Andrew Burgess <aburgess@broadcom.com>
|
||||
|
||||
* c-typeprint.c (c_type_print_varspec_prefix): Pass through the
|
||||
passed_a_ptr flag when displaying typedef types.
|
||||
|
||||
2012-09-10 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* ada-lang.c (coerce_unspec_val_to_type): Make sure that
|
||||
|
|
|
@ -306,7 +306,7 @@ c_type_print_varspec_prefix (struct type *type,
|
|||
|
||||
case TYPE_CODE_TYPEDEF:
|
||||
c_type_print_varspec_prefix (TYPE_TARGET_TYPE (type),
|
||||
stream, show, 0, 0);
|
||||
stream, show, passed_a_ptr, 0);
|
||||
break;
|
||||
|
||||
case TYPE_CODE_UNDEF:
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2012-09-11 Andrew Burgess <aburgess@broadcom.com>
|
||||
|
||||
* gdb.base/ptype.exp: Test ptype on a pointer to a typedef.
|
||||
|
||||
2012-09-10 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* gdb.ada/optim_drec: New testcase.
|
||||
|
|
|
@ -370,6 +370,8 @@ if {!$gcc_compiled} then { setup_xfail "rs6000-*-*" "i*86-*-sysv4*" }
|
|||
if {$hp_aCC_compiler} {setup_xfail "hppa*-*-*"}
|
||||
gdb_test "ptype t_char_array" "type = (|unsigned )char \\\[0?\\\]"
|
||||
|
||||
gdb_test "ptype pv_char_array" "type = (|unsigned )char \\(\\*\\)\\\[0?\\\]"
|
||||
|
||||
#
|
||||
##
|
||||
## test ptype command with pointers
|
||||
|
|
Loading…
Reference in New Issue