This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Fix generation of virtual function table pointer field names
- To: gdb-patches at sources dot redhat dot com
- Subject: [PATCH] Fix generation of virtual function table pointer field names
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: 23 Mar 2001 19:46:06 -0500
I've committed this:
2001-03-23 Jim Blandy <jimb@redhat.com>
* stabsread.c (read_cpp_abbrev): Properly construct the names of
virtual function table pointer fields.
Index: gdb/stabsread.c
===================================================================
RCS file: /cvs/src/src/gdb/stabsread.c,v
retrieving revision 1.12
diff -c -r1.12 stabsread.c
*** gdb/stabsread.c 2001/03/21 16:42:38 1.12
--- gdb/stabsread.c 2001/03/24 00:40:18
***************
*** 3264,3271 ****
switch (cpp_abbrev)
{
case 'f': /* $vf -- a virtual function table pointer */
fip->list->field.name =
! obconcat (&objfile->type_obstack, vptr_name, "", "");
break;
case 'b': /* $vb -- a virtual bsomethingorother */
--- 3264,3276 ----
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, name, "");
break;
case 'b': /* $vb -- a virtual bsomethingorother */