* linux-low.c (linux_unprepare_to_access_memory): Rename to ...
authorPedro Alves <palves@redhat.com>
Fri, 27 Aug 2010 00:16:48 +0000 (00:16 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 27 Aug 2010 00:16:48 +0000 (00:16 +0000)
(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.

gdb/gdbserver/ChangeLog
gdb/gdbserver/linux-low.c
gdb/gdbserver/linux-x86-low.c
gdb/gdbserver/nto-low.c
gdb/gdbserver/server.c
gdb/gdbserver/spu-low.c
gdb/gdbserver/target.h
gdb/gdbserver/win32-low.c

index b31695438ed60a70fe325aa7dd3dd4d900b3d4a2..fbc3e4efb195ae86e647dd8868585cbd6d698d19 100644 (file)
@@ -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.
index 7fa9336e8cd550881cdafe50b683f57bcd51b21b..0f6c543fbbadeb59c18757605f056e76d0c30057 100644 (file)
@@ -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,
index b169b75543397d78d60610d60cb8ee40ec36eedf..8ddb5530e9d2a8ffe531b7091b38e2d5ee3a464f 100644 (file)
@@ -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':
index 4502ee7f92129a99ea24b2cec54979e56569f5cb..0c54b90b87866804648057a945c9d66ec2a8460b 100644 (file)
@@ -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 */
index 5daf4b53f2d71d1c3f9797fe714da12590603683..c406abe329333e3c2b00c3b5dcf4d225b1308225 100644 (file)
@@ -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;
     }
index dc301b2ed164d05abef150e03cd450c643c0618c..1568c100dc1a1327592789d98e14f5f2a2d7079b 100644 (file)
@@ -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,
index 8126f857f715febe455f2171b7fac8478eb2de3f..a621b324713eb21a1ba717b8b2e80f52bbe47624 100644 (file)
@@ -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);
index f64673849cbac0004cf2b15ccaa0ab5313d3cf35..dd26d730b23244202d4beadea16a806bb4fc275d 100644 (file)
@@ -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 */