[gnu.gdb.bug] No data fields

bryan@UUNET.UU.NET (Bryan Boreham) (09/18/89)

Can I suggest this:

*** valprint.c~	Sun Sep 17 19:47:00 1989
--- valprint.c	Sun Sep 17 19:48:22 1989
***************
*** 1033,1038 ****
  	  fprintf_filtered (stream, "{");
  	  len = TYPE_NFIELDS (type);
! 	  if (len) fprintf_filtered (stream, "\n");
! 	  else fprintf_filtered (stream, "<no data fields>\n");
  
  	  /* If there is a base class for this type,
--- 1035,1045 ----
  	  fprintf_filtered (stream, "{");
  	  len = TYPE_NFIELDS (type);
! 	  if (len) 
! 	    fprintf_filtered (stream, "\n");
! 	  else 
! 	    if (TYPE_FLAGS (type) & TYPE_FLAG_STUB)
! 	      fprintf_filtered (stream, "<Type not defined in this context>\n");
! 	    else
! 	      fprintf_filtered (stream, "<no data fields>\n");
  
  	  /* If there is a base class for this type,