🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by George Hartzell Mon, 05 Mar 1990 21:27
bug on fix for gdb on MIPS (bigendian)
#867
Author: 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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads