aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-04-02 11:56:14 +0000
committerJohn Gilmore <gnu@cygnus>1992-04-02 11:56:14 +0000
commit03c93c664dd6dfafaf12522b9ae01e015bbd570a (patch)
tree2de6fdedb383570cdf855f31274478398cb43d57 /gdb/buildsym.c
parentac88ca205c0d1cb48943550d41a6400b4e556271 (diff)
downloadfsf-binutils-gdb-03c93c664dd6dfafaf12522b9ae01e015bbd570a.zip
fsf-binutils-gdb-03c93c664dd6dfafaf12522b9ae01e015bbd570a.tar.gz
fsf-binutils-gdb-03c93c664dd6dfafaf12522b9ae01e015bbd570a.tar.bz2
* 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.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 20ffa40..5f160be 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.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, "");