diff options
author | Tom Tromey <tromey@redhat.com> | 2010-02-02 16:47:14 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-02-02 16:47:14 +0000 |
commit | 0cc2414c91dfd4d34c43b4e20e3307ab94629333 (patch) | |
tree | 4386662a81d909a5ad75cf54a7c98345e0dd0c63 /gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp | |
parent | edf3d5f3f8c5adff55934e57da9cd8c874dc2a55 (diff) | |
download | fsf-binutils-gdb-0cc2414c91dfd4d34c43b4e20e3307ab94629333.zip fsf-binutils-gdb-0cc2414c91dfd4d34c43b4e20e3307ab94629333.tar.gz fsf-binutils-gdb-0cc2414c91dfd4d34c43b4e20e3307ab94629333.tar.bz2 |
gdb
* m2-typeprint.c (m2_record_fields): Don't use
TYPE_DECLARED_TYPE.
* gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
(struct main_type) <flag_declared_class>: New field.
(struct cplus_struct_type) <declared_type>: Remove.
<ntemplate_args>: Move earlier.
(DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
(DECLARED_TYPE_TEMPLATE): Remove.
(TYPE_DECLARED_TYPE): Remove.
* gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
* dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
* c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
TYPE_DECLARED_TYPE.
gdb/testsuite
* gdb.dwarf2/member-ptr-forwardref.exp: Update expected result for
type-printing change.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp b/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp index 0a54dfe..bb947bc 100644 --- a/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp +++ b/gdb/testsuite/gdb.dwarf2/member-ptr-forwardref.exp @@ -45,4 +45,4 @@ gdb_test "show cp-abi" {The currently selected C\+\+ ABI is "gnu-v3".*} gdb_load ${binfile} -gdb_test "ptype c" "type = class C {\[\r\n \t\]*int \\(C::\\*fp\\)\\(C \\*\\);\[\r\n \t\]*}" +gdb_test "ptype c" "type = struct C {\[\r\n \t\]*private:\[\r\n \t\]*int \\(C::\\*fp\\)\\(C \\*\\);\[\r\n \t\]*}" |