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 | c2bd2ed9a60d828ac3120c8df1eec91680233316 (patch) | |
tree | 98d85cf25e9ded3f9f8d3da081293e3ec651ffbf /gdb/stabsread.c | |
parent | e93d71992f11429c856aecc56b27cb0c3e5ee20e (diff) | |
download | gdb-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.c | 7 |
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 */ |