aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2011-07-05 13:36:42 +0000
committerTom Tromey <tromey@redhat.com>2011-07-05 13:36:42 +0000
commiteb2a6f420b324bc81207c7606ebef9db3a9bb984 (patch)
tree5741460f7d99914793d65d5ef485030ce74da60e /gdb/dwarf2read.c
parent177b42fefa0b72f2ca50ddf7393c0f2465546ff4 (diff)
downloadgdb-eb2a6f420b324bc81207c7606ebef9db3a9bb984.zip
gdb-eb2a6f420b324bc81207c7606ebef9db3a9bb984.tar.gz
gdb-eb2a6f420b324bc81207c7606ebef9db3a9bb984.tar.bz2
gdb
* gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA. * gdbtypes.h (struct cplus_struct_type) <is_java>: New field. (TYPE_CPLUS_REALLY_JAVA): New macro. * dwarf2read.c (process_structure_scope): Set TYPE_CPLUS_REALLY_JAVA. gdb/testsuite * gdb.java/jprint.java (jprint.hi): New field. * gdb.java/jprint.exp: Print string.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 3ffe1ee..d86487a 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -7492,6 +7492,9 @@ process_structure_scope (struct die_info *die, struct dwarf2_cu *cu)
}
do_cleanups (back_to);
+
+ if (HAVE_CPLUS_STRUCT (type))
+ TYPE_CPLUS_REALLY_JAVA (type) = cu->language == language_java;
}
quirk_gcc_member_function_pointer (type, cu->objfile);