* gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
isn't NULL, which can happen with some gcj-3.x-produced code.
This commit is contained in:
parent
20b7f9f6eb
commit
98081e55d9
2 changed files with 7 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-01-19 Per Bothner <per@bothner.com>
|
||||
|
||||
* gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
|
||||
isn't NULL, which can happen with some gcj-3.x-produced code.
|
||||
|
||||
2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
|
||||
|
||||
* alpha-tdep.c (alpha_register_virtual_type): New function.
|
||||
|
|
|
@ -239,7 +239,8 @@ gnuv3_rtti_type (struct value *value,
|
|||
type_info object itself to get the class name. But this way
|
||||
should work just as well, and doesn't read target memory. */
|
||||
vtable_symbol_name = SYMBOL_DEMANGLED_NAME (vtable_symbol);
|
||||
if (strncmp (vtable_symbol_name, "vtable for ", 11))
|
||||
if (vtable_symbol_name == NULL
|
||||
|| strncmp (vtable_symbol_name, "vtable for ", 11))
|
||||
error ("can't find linker symbol for virtual table for `%s' value",
|
||||
TYPE_NAME (value_type));
|
||||
class_name = vtable_symbol_name + 11;
|
||||
|
|
Loading…
Reference in a new issue