mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* buildsym.c (read_struct_type): Avoid coredump when C++
abbreviated type name is messed up. Reported by Joe Buck. FIXME, we need to determine whether GDB or GCC needs to be smarter to correctly locate this type name. p*927 circumvention, needs real fix when Tiemann's back.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
Thu Apr 2 00:55:56 1992 John Gilmore (gnu at cygnus.com)
|
||||
|
||||
* buildsym.c (read_struct_type): Avoid coredump when C++
|
||||
abbreviated type name is messed up. Reported by Joe Buck.
|
||||
FIXME, we need to determine whether GDB or GCC needs to be
|
||||
smarter to correctly locate this type name.
|
||||
|
||||
* c-exp.y, coffread.c, command.c, command.h, copying.awk,
|
||||
dbxread.c, gdbtypes.c, infcmd.c, inferior.h, infrun.c,
|
||||
m2-exp.y, printcmd.c, remote.c, solib.c, source.c, stack.c,
|
||||
|
||||
@@ -2210,7 +2210,7 @@ read_struct_type (pp, type, objfile)
|
||||
if (name == 0)
|
||||
{
|
||||
complain (&invalid_cpp_type_complaint, (char *) symnum);
|
||||
TYPE_NAME (context) = name;
|
||||
name = "FOO";
|
||||
}
|
||||
list->field.name = obconcat (&objfile -> type_obstack,
|
||||
prefix, name, "");
|
||||
|
||||
Reference in New Issue
Block a user