Thread View: gnu.gdb.bug
1 messages
1 total messages
Started by Chris Benenati
Mon, 21 Nov 1988 23:21
bugs in V2.5 and V2.8 of gdb
Author: Chris Benenati
Date: Mon, 21 Nov 1988 23:21
Date: Mon, 21 Nov 1988 23:21
21 lines
1012 bytes
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;
}
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