This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] Fix generation of virtual function table pointer field names



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 */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]