🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #867

bug on fix for gdb on MIPS (bigendian)

#867
From: George Hartzell
Date: Mon, 05 Mar 1990 21:27
26 lines
1440 bytes
Gdb on my MIPS M-2000 running RISC/os 4.01 (on the bsd side) had a
problem with line numbers that are represented in the extended format
(delta greater than -7 - 7).  A fix is below.  I don't know if it
works for other MIPS boxes (like the SGI).  I think the problem is
with what happens to the sign bit when code gets '>>'ed and assigned
to delta.

*** mipscoff.c	Mon Mar  5 13:43:31 1990
--- mipscoff.c.old	Mon Mar  5 13:43:24 1990
***************
*** 1612,1620 ****
  	  int count = (code & 15) + 1;
  	  if (dump_stuff & 1) printf("%2x", 0xFF & code);
- #ifdef BITS_BIG_ENDIAN		/* works for MIPS M-2000 RISC/os4.01bsd */
- 	  if ((delta == 8) && (code & 128))
- #else
  	  if (delta == -8)
- #endif
  	    {
  	      if (dump_stuff & 1)
--- 1612,1616 ----


George Hartzell			                  (303) 492-4535
 MCD Biology, University of Colorado-Boulder, Boulder, CO 80309
hartzell@Boulder.Colorado.EDU           ..!ncar!boulder!hartzell
Technical Details
Message-ID: <17784@boulder.Colorado.EDU>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!bu.edu!snorkelwacker!think!samsung!cs.utexas.edu!asuvax!ncar!boulder!hartzell

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!bu.edu!snorkelwacker!think!samsung!cs.utexas.edu!asuvax!ncar!boulder!hartzell
From: hartzell@boulder.colorado.edu (George Hartzell)
Newsgroups: gnu.gdb.bug,comp.sys.mips
Subject: bug on fix for gdb on MIPS (bigendian)
Message-ID: <17784@boulder.Colorado.EDU>
Date: 5 Mar 90 21:27:41 GMT
Sender: news@boulder.Colorado.EDU
Reply-To: hartzell@boulder.colorado.edu (George Hartzell)
Organization: University of Colorado, Boulder
Lines: 26