Path: 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: Date: 21 Nov 88 23:21:35 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 21 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; }