/[simulavr]/simulavr/src/gdbserver.c
ViewVC logotype

Diff of /simulavr/src/gdbserver.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.29 by troth, Sun Feb 24 19:51:14 2002 UTC revision 1.30 by troth, Mon Apr 1 05:27:01 2002 UTC
# Line 571  static void gdb_read_memory( AvrCore *co Line 571  static void gdb_read_memory( AvrCore *co
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          }          }
# Line 669  static void gdb_write_memory( AvrCore *c Line 674  static void gdb_write_memory( AvrCore *c
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          }          }

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26