🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #607

gdb patch for "Invalid symbol data" message

#607
From: Gary Beihl
Date: Tue, 11 Oct 1988 13:36
27 lines
1377 bytes
This is on a Sun-4 running OS4.0.  The Sun compiler seems to be
putting an N_SLINE symbol with a negative line number (-1) immediately
following a library definition ("-lg" in this case). Gdb expects the
source file name to immediately follow and prints the message:
"Invalid symbol data: does not start by identifying a source file."
The attached patch to dbxread.c prevents this message.

Gary Beihl (beihl@mcc.com)

*** dbxread.c.orig	Sun Sep 11 01:32:15 1988
--- dbxread.c	Mon Oct 10 15:11:28 1988
***************
*** 1674,1679 ****
--- 1674,1683 ----
  	/* This code appears in libraries on Gould machines.  */
  	return;
  
+       if (type == N_SLINE && desc == -1)
+         /* This code is used by the Sun4 compiler; ignore it */
+         return;
+ 
        /* This should give an aborting error.  */
        printf ("Invalid symbol data: does not start by identifying a source file.\ntype == %d\n\n", type);
        return;

-------
Technical Details
Message-ID: <8810111336.AA07790@sunspot>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!MCC.COM!beihl%cadillac.cad.mcc.com

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!MCC.COM!beihl%cadillac.cad.mcc.com
From: beihl%cadillac.cad.mcc.com@MCC.COM (Gary Beihl)
Newsgroups: gnu.gdb.bug
Subject: gdb patch for "Invalid symbol data" message
Message-ID: <8810111336.AA07790@sunspot>
Date: 11 Oct 88 13:36:37 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 27