* stabsread.c (read_cpp_abbrev): Properly construct the names of
authorJim Blandy <jimb@codesourcery.com>
Sat, 24 Mar 2001 00:42:59 +0000 (00:42 +0000)
committerJim Blandy <jimb@codesourcery.com>
Sat, 24 Mar 2001 00:42:59 +0000 (00:42 +0000)
virtual function table pointer fields.

gdb/ChangeLog
gdb/stabsread.c

index 2067bfe660f06c033824d6c1400a4714e4b01327..6f7cbda9a192f7c9edd22fc71962713670433ee1 100644 (file)
@@ -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,
index bba3d094031a727ed90a3baa3fa971b0aa0b6a63..169f1f9acd497bb90bad609f07525f574e36c7c4 100644 (file)
@@ -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 */