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 | |
parent | e93d71992f11429c856aecc56b27cb0c3e5ee20e (diff) | |
download | fsf-binutils-gdb-c2bd2ed9a60d828ac3120c8df1eec91680233316.zip fsf-binutils-gdb-c2bd2ed9a60d828ac3120c8df1eec91680233316.tar.gz fsf-binutils-gdb-c2bd2ed9a60d828ac3120c8df1eec91680233316.tar.bz2 |
* stabsread.c (read_cpp_abbrev): Properly construct the names of
virtual function table pointer fields.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/stabsread.c | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2067bfe..6f7cbda 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2001-03-23 Jim Blandy <jimb@redhat.com> + + * stabsread.c (read_cpp_abbrev): Properly construct the names of + virtual function table pointer fields. + 2001-03-19 Andrew Cagney <ac131313@redhat.com> * defs.h (xfree, mcalloc, mmalloc, mrealloc, mfree, xmmalloc, 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 */ |