571 |
/* Return an error to gdb if it tries to read or write any of the 32 |
/* Return an error to gdb if it tries to read or write any of the 32 |
572 |
general purpse registers. This allows gdb to know when a zero |
general purpse registers. This allows gdb to know when a zero |
573 |
pointer has been dereferenced. */ |
pointer has been dereferenced. */ |
574 |
if ( (addr >= 0) && (addr < 32) ) |
|
575 |
|
/* FIXME: [TRoth 2002/03/31] This isn't working quite the way I |
576 |
|
thought it would so I've removed it for now.*/ |
577 |
|
|
578 |
|
/* if ( (addr >= 0) && (addr < 32) ) */ |
579 |
|
if (0) |
580 |
{ |
{ |
581 |
snprintf( buf, len*2, "E%02x", EIO ); |
snprintf( buf, len*2, "E%02x", EIO ); |
582 |
} |
} |
674 |
addr = addr & ~MEM_SPACE_MASK; /* remove the offset bits */ |
addr = addr & ~MEM_SPACE_MASK; /* remove the offset bits */ |
675 |
|
|
676 |
/* Return error. See gdb_read_memory for reasoning. */ |
/* Return error. See gdb_read_memory for reasoning. */ |
677 |
if ( (addr >= 0) && (addr < 32) ) |
/* FIXME: [TRoth 2002/03/31] This isn't working quite the way I |
678 |
|
thought it would so I've removed it for now.*/ |
679 |
|
/* if ( (addr >= 0) && (addr < 32) ) */ |
680 |
|
if (0) |
681 |
{ |
{ |
682 |
snprintf( reply, sizeof(reply), "E%02x", EIO ); |
snprintf( reply, sizeof(reply), "E%02x", EIO ); |
683 |
} |
} |