🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gdb.bug
Article #619

bugs in V2.5 and V2.8 of gdb

#619
From: Chris Benenati
Date: Mon, 21 Nov 1988 23:21
21 lines
1012 bytes
Bugs, I believe, in remote.c, in both versions 2.5 and 2.8 of GDB:

In remote_store_registers():

	  for (i = 0; i < REGISTER_BYTES; i++)
	    {
	      *p++ = (regs[i] > 4) & 0xf;  <------ should be ">>" not ">"
	      *p++ = regs[i] & 0xf;
	    }
	
Same thing in remote_write_bytes()

In remote_read_bytes():

	  for (i = 0; i < REGISTER_BYTES; i++)	<---------should be "i < len"
	    {
	      if (p[0] == 0 || p[1] == 0)
		error ("Remote reply is too short: %s", buf);
	      myaddr[i] = fromhex (p[0]) * 16 + fromhex (p[1]);
	      p += 2;
	    }
Technical Details
Message-ID: <m0eLPqi-0001fFC@mipon2.intel.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!bu-cs!bloom-beacon!tut.cis.ohio-state.edu!tektronix.tek.com!mipon2.intel.com!ogccse!chrisb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!uunet!bu-cs!bloom-beacon!tut.cis.ohio-state.edu!tektronix.tek.com!mipon2.intel.com!ogccse!chrisb
From: mipon2.intel.com!ogccse!chrisb@tektronix.tek.com (Chris Benenati)
Newsgroups: gnu.gdb.bug
Subject: bugs in V2.5 and V2.8 of gdb
Message-ID: <m0eLPqi-0001fFC@mipon2.intel.com>
Date: 21 Nov 88 23:21:35 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 21