aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/target.h
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2010-08-27 00:16:48 +0000
committerPedro Alves <palves@redhat.com>2010-08-27 00:16:48 +0000
commit0146f85bf73a3395b8c0e17ed2beb0d737e5b8e1 (patch)
tree7b875c83f285f2758d56fb4340015fe14d20e52b /gdb/gdbserver/target.h
parent6b911e8b2a82908924c9e23d04aeaa41c3b5c12f (diff)
downloadgdb-0146f85bf73a3395b8c0e17ed2beb0d737e5b8e1.zip
gdb-0146f85bf73a3395b8c0e17ed2beb0d737e5b8e1.tar.gz
gdb-0146f85bf73a3395b8c0e17ed2beb0d737e5b8e1.tar.bz2
* 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.
Diffstat (limited to 'gdb/gdbserver/target.h')
-rw-r--r--gdb/gdbserver/target.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/gdbserver/target.h b/gdb/gdbserver/target.h
index 8126f85..a621b32 100644
--- a/gdb/gdbserver/target.h
+++ b/gdb/gdbserver/target.h
@@ -196,7 +196,7 @@ struct target_ops
/* 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.
@@ -491,11 +491,11 @@ ptid_t mywait (ptid_t ptid, struct target_waitstatus *ourstatus, int options,
? (*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);