From: Jim Blandy Date: Sat, 24 Mar 2001 00:42:59 +0000 (+0000) Subject: * stabsread.c (read_cpp_abbrev): Properly construct the names of X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c2bd2ed9a60d828ac3120c8df1eec91680233316;p=binutils-gdb.git * stabsread.c (read_cpp_abbrev): Properly construct the names of virtual function table pointer fields. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2067bfe660f..6f7cbda9a19 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-03-23 Jim Blandy + + * stabsread.c (read_cpp_abbrev): Properly construct the names of + virtual function table pointer fields. + 2001-03-19 Andrew Cagney * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc, diff --git a/gdb/stabsread.c b/gdb/stabsread.c index bba3d094031..169f1f9acd4 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -3264,8 +3264,13 @@ read_cpp_abbrev (struct field_info *fip, char **pp, struct type *type, switch (cpp_abbrev) { case 'f': /* $vf -- a virtual function table pointer */ + name = type_name_no_tag (context); + if (name == NULL) + { + name = ""; + } fip->list->field.name = - obconcat (&objfile->type_obstack, vptr_name, "", ""); + obconcat (&objfile->type_obstack, vptr_name, name, ""); break; case 'b': /* $vb -- a virtual bsomethingorother */