diff options
author | Pedro Alves <palves@redhat.com> | 2010-08-27 00:16:48 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2010-08-27 00:16:48 +0000 |
commit | 0146f85bf73a3395b8c0e17ed2beb0d737e5b8e1 (patch) | |
tree | 7b875c83f285f2758d56fb4340015fe14d20e52b | |
parent | 6b911e8b2a82908924c9e23d04aeaa41c3b5c12f (diff) | |
download | gdb-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.
-rw-r--r-- | gdb/gdbserver/ChangeLog | 14 | ||||
-rw-r--r-- | gdb/gdbserver/linux-low.c | 4 | ||||
-rw-r--r-- | gdb/gdbserver/linux-x86-low.c | 4 | ||||
-rw-r--r-- | gdb/gdbserver/nto-low.c | 2 | ||||
-rw-r--r-- | gdb/gdbserver/server.c | 4 | ||||
-rw-r--r-- | gdb/gdbserver/spu-low.c | 2 | ||||
-rw-r--r-- | gdb/gdbserver/target.h | 8 | ||||
-rw-r--r-- | gdb/gdbserver/win32-low.c | 2 |
8 files changed, 27 insertions, 13 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index b316954..fbc3e4e 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,17 @@ +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. diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c index 7fa9336..0f6c543 100644 --- a/gdb/gdbserver/linux-low.c +++ b/gdb/gdbserver/linux-low.c @@ -5016,7 +5016,7 @@ linux_prepare_to_access_memory (void) } 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. */ @@ -5063,7 +5063,7 @@ static struct target_ops linux_target_ops = { 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, diff --git a/gdb/gdbserver/linux-x86-low.c b/gdb/gdbserver/linux-x86-low.c index b169b75..8ddb553 100644 --- a/gdb/gdbserver/linux-x86-low.c +++ b/gdb/gdbserver/linux-x86-low.c @@ -562,7 +562,7 @@ x86_insert_point (char type, CORE_ADDR addr, int len) if (ret) return -1; ret = set_gdb_breakpoint_at (addr); - unprepare_to_access_memory (); + done_accessing_memory (); return ret; } case '2': @@ -590,7 +590,7 @@ x86_remove_point (char type, CORE_ADDR addr, int len) if (ret) return -1; ret = delete_gdb_breakpoint_at (addr); - unprepare_to_access_memory (); + done_accessing_memory (); return ret; } case '2': diff --git a/gdb/gdbserver/nto-low.c b/gdb/gdbserver/nto-low.c index 4502ee7..0c54b90 100644 --- a/gdb/gdbserver/nto-low.c +++ b/gdb/gdbserver/nto-low.c @@ -914,7 +914,7 @@ static struct target_ops nto_target_ops = { 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 */ diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 5daf4b5..c406abe 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -564,7 +564,7 @@ gdb_read_memory (CORE_ADDR memaddr, unsigned char *myaddr, int len) if (ret == 0) { ret = read_inferior_memory (memaddr, myaddr, len); - unprepare_to_access_memory (); + done_accessing_memory (); } return ret; @@ -586,7 +586,7 @@ gdb_write_memory (CORE_ADDR memaddr, const unsigned char *myaddr, int len) if (ret == 0) { ret = write_inferior_memory (memaddr, myaddr, len); - unprepare_to_access_memory (); + done_accessing_memory (); } return ret; } diff --git a/gdb/gdbserver/spu-low.c b/gdb/gdbserver/spu-low.c index dc301b2..1568c10 100644 --- a/gdb/gdbserver/spu-low.c +++ b/gdb/gdbserver/spu-low.c @@ -654,7 +654,7 @@ static struct target_ops spu_target_ops = { 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, 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); diff --git a/gdb/gdbserver/win32-low.c b/gdb/gdbserver/win32-low.c index f646738..dd26d73 100644 --- a/gdb/gdbserver/win32-low.c +++ b/gdb/gdbserver/win32-low.c @@ -1782,7 +1782,7 @@ static struct target_ops win32_target_ops = { 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 */ |