forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -287,6 +287,10 @@ gnuv3_rtti_type (struct value *value,
|
||||
if (TYPE_CODE (values_type) != TYPE_CODE_CLASS)
|
||||
return NULL;
|
||||
|
||||
/* Java doesn't have RTTI following the C++ ABI. */
|
||||
if (TYPE_CPLUS_REALLY_JAVA (values_type))
|
||||
return NULL;
|
||||
|
||||
/* Determine architecture. */
|
||||
gdbarch = get_type_arch (values_type);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user