aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-03-24 00:42:59 +0000
committerJim Blandy <jimb@codesourcery.com>2001-03-24 00:42:59 +0000
commitc2bd2ed9a60d828ac3120c8df1eec91680233316 (patch)
tree98d85cf25e9ded3f9f8d3da081293e3ec651ffbf /gdb/stabsread.c
parente93d71992f11429c856aecc56b27cb0c3e5ee20e (diff)
downloadgdb-c2bd2ed9a60d828ac3120c8df1eec91680233316.zip
gdb-c2bd2ed9a60d828ac3120c8df1eec91680233316.tar.gz
gdb-c2bd2ed9a60d828ac3120c8df1eec91680233316.tar.bz2
* stabsread.c (read_cpp_abbrev): Properly construct the names of
virtual function table pointer fields.
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r--gdb/stabsread.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index bba3d09..169f1f9 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 */