(linux_done_accessing_memory): ... this.
(linux_target_ops): Adjust.
* linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
* nto-low.c (nto_target_ops): Adjust comment.
* server.c (gdb_read_memory, gdb_write_memory): Adjust.
* spu-low.c (spu_target_ops): Adjust comment.
* target.h (target_ops): Rename unprepare_to_access_memory field
to done_accessing_memory.
(unprepare_to_access_memory): Rename to ...
(done_accessing_memory): ... this.
+2010-08-27 Pedro Alves <pedro@codesourcery.com>
+
+ * linux-low.c (linux_unprepare_to_access_memory): Rename to ...
+ (linux_done_accessing_memory): ... this.
+ (linux_target_ops): Adjust.
+ * linux-x86-low.c (x86_insert_point, x86_remove_point): Adjust.
+ * nto-low.c (nto_target_ops): Adjust comment.
+ * server.c (gdb_read_memory, gdb_write_memory): Adjust.
+ * spu-low.c (spu_target_ops): Adjust comment.
+ * target.h (target_ops): Rename unprepare_to_access_memory field
+ to done_accessing_memory.
+ (unprepare_to_access_memory): Rename to ...
+ (done_accessing_memory): ... this.
+
2010-08-26 Pedro Alves <pedro@codesourcery.com>
* linux-low.c (linux_prepare_to_access_memory): New.
}
static void
-linux_unprepare_to_access_memory (void)
+linux_done_accessing_memory (void)
{
/* Neither ptrace nor /proc/PID/mem allow accessing memory through a
running LWP. */
linux_fetch_registers,
linux_store_registers,
linux_prepare_to_access_memory,
- linux_unprepare_to_access_memory,
+ linux_done_accessing_memory,
linux_read_memory,
linux_write_memory,
linux_look_up_symbols,
if (ret)
return -1;
ret = set_gdb_breakpoint_at (addr);
- unprepare_to_access_memory ();
+ done_accessing_memory ();
return ret;
}
case '2':
if (ret)
return -1;
ret = delete_gdb_breakpoint_at (addr);
- unprepare_to_access_memory ();
+ done_accessing_memory ();
return ret;
}
case '2':
nto_fetch_registers,
nto_store_registers,
NULL, /* prepare_to_access_memory */
- NULL, /* unprepare_to_access_memory */
+ NULL, /* done_accessing_memory */
nto_read_memory,
nto_write_memory,
NULL, /* nto_look_up_symbols */
if (ret == 0)
{
ret = read_inferior_memory (memaddr, myaddr, len);
- unprepare_to_access_memory ();
+ done_accessing_memory ();
}
return ret;
if (ret == 0)
{
ret = write_inferior_memory (memaddr, myaddr, len);
- unprepare_to_access_memory ();
+ done_accessing_memory ();
}
return ret;
}
spu_fetch_registers,
spu_store_registers,
NULL, /* prepare_to_access_memory */
- NULL, /* unprepare_to_access_memory */
+ NULL, /* done_accessing_memory */
spu_read_memory,
spu_write_memory,
spu_look_up_symbols,
/* Undo the effects of prepare_to_access_memory. */
- void (*unprepare_to_access_memory) (void);
+ void (*done_accessing_memory) (void);
/* Read memory from the inferior process. This should generally be
called through read_inferior_memory, which handles breakpoint shadowing.
? (*the_target->prepare_to_access_memory) () \
: 0)
-#define unprepare_to_access_memory() \
+#define done_accessing_memory() \
do \
{ \
- if (the_target->unprepare_to_access_memory) \
- (*the_target->unprepare_to_access_memory) (); \
+ if (the_target->done_accessing_memory) \
+ (*the_target->done_accessing_memory) (); \
} while (0)
int read_inferior_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len);
win32_fetch_inferior_registers,
win32_store_inferior_registers,
NULL, /* prepare_to_access_memory */
- NULL, /* unprepare_to_access_memory */
+ NULL, /* done_accessing_memory */
win32_read_inferior_memory,
win32_write_inferior_memory,
NULL, /* lookup_symbols */