diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-03-24 00:42:59 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-03-24 00:42:59 +0000 |
commit | 22e65dfcfe95c3847538f7811b0bceec3a2a5fa9 (patch) | |
tree | d16b90e5d8e5f243612d0647b314bcf2a0de6e20 /gdb/stabsread.c | |
parent | 70a40477a3e8b537b6659cd3b1d06c34a8125945 (diff) | |
download | gdb-22e65dfcfe95c3847538f7811b0bceec3a2a5fa9.tar.gz |
* 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.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 */ |