Index: gnu-v3-abi.c =================================================================== RCS file: /cvs/src/src/gdb/gnu-v3-abi.c,v retrieving revision 1.6 diff -u -r1.6 gnu-v3-abi.c --- gnu-v3-abi.c 2002/01/04 18:20:19 1.6 +++ gnu-v3-abi.c 2002/01/19 20:33:49 @@ -239,7 +239,8 @@ 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;