2004-10-08 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Fri, 8 Oct 2004 20:30:00 +0000 (20:30 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 8 Oct 2004 20:30:00 +0000 (20:30 +0000)
* target.h (struct target_ops): Rename to_xfer_memory to
deprecated_xfer_memory.
* target.c: Update.
(deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
* wince.c: Update.
* win32-nat.c: Update.
* v850ice.c: Update.
* uw-thread.c: Update.
* thread-db.c: Update.
* sol-thread.c: Update.
* remote.c: Update.
* remote-vx.c: Update.
* remote-st.c: Update.
* remote-sim.c: Update.
* remote-sds.c: Update.
* remote-rdp.c: Update.
* remote-rdi.c: Update.
* remote-mips.c: Update.
* remote-m32r-sdi.c: Update.
* remote-e7000.c: Update.
* procfs.c: Update.
* ppc-bdm.c: Update.
* nto-procfs.c: Update.
* monitor.c: Update.
* linux-nat.c: Update.
* inftarg.c: Update.
* hpux-thread.c: Update.
* go32-nat.c: Update.
* gnu-nat.c: Update.
* exec.c: Update.
* corelow.c: Update.
* bsd-kvm.c: Update.
* aix-thread.c: Update.

33 files changed:
gdb/ChangeLog
gdb/aix-thread.c
gdb/bsd-kvm.c
gdb/corelow.c
gdb/exec.c
gdb/gnu-nat.c
gdb/go32-nat.c
gdb/hpux-thread.c
gdb/inftarg.c
gdb/linux-nat.c
gdb/monitor.c
gdb/nto-procfs.c
gdb/ppc-bdm.c
gdb/procfs.c
gdb/remote-e7000.c
gdb/remote-m32r-sdi.c
gdb/remote-mips.c
gdb/remote-rdi.c
gdb/remote-rdp.c
gdb/remote-sds.c
gdb/remote-sim.c
gdb/remote-st.c
gdb/remote-vx.c
gdb/remote.c
gdb/sol-thread.c
gdb/target.c
gdb/target.h
gdb/thread-db.c
gdb/uw-thread.c
gdb/v850ice.c
gdb/win32-nat.c
gdb/wince.c
gdb/windows-nat.c

index d6dcc91008e730bed6d2723471c6a4337439ab06..5601d9a6c77d41826e652283b404d80885b1e561 100644 (file)
@@ -1,3 +1,39 @@
+2004-10-08  Andrew Cagney  <cagney@gnu.org>
+
+       * target.h (struct target_ops): Rename to_xfer_memory to
+       deprecated_xfer_memory.
+       * target.c: Update.
+       (deprecated_debug_xfer_memory): Rename debug_to_xfer_memory.
+       * wince.c: Update.
+       * win32-nat.c: Update.
+       * v850ice.c: Update.
+       * uw-thread.c: Update.
+       * thread-db.c: Update.
+       * sol-thread.c: Update.
+       * remote.c: Update.
+       * remote-vx.c: Update.
+       * remote-st.c: Update.
+       * remote-sim.c: Update.
+       * remote-sds.c: Update.
+       * remote-rdp.c: Update.
+       * remote-rdi.c: Update.
+       * remote-mips.c: Update.
+       * remote-m32r-sdi.c: Update.
+       * remote-e7000.c: Update.
+       * procfs.c: Update.
+       * ppc-bdm.c: Update.
+       * nto-procfs.c: Update.
+       * monitor.c: Update.
+       * linux-nat.c: Update.
+       * inftarg.c: Update.
+       * hpux-thread.c: Update.
+       * go32-nat.c: Update.
+       * gnu-nat.c: Update.
+       * exec.c: Update.
+       * corelow.c: Update.
+       * bsd-kvm.c: Update.
+       * aix-thread.c: Update.
+
 2004-10-08  Andrew Cagney  <cagney@gnu.org>
 
        * target.c (debug_target): Move to near start of file.
index c345b4c3863c9145f9e2e971b1b4bc4fc1737efc..63687d7bee596727730fe277d5e3e535f20796e5 100644 (file)
@@ -1604,8 +1604,8 @@ aix_thread_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
   struct cleanup *cleanup = save_inferior_ptid ();
 
   inferior_ptid = pid_to_ptid (PIDGET (inferior_ptid));
-  n = base_target.to_xfer_memory (memaddr, myaddr, len, 
-                                 write, attrib, &base_target);
+  n = base_target.deprecated_xfer_memory (memaddr, myaddr, len, 
+                                         write, attrib, &base_target);
   do_cleanups (cleanup);
 
   return n;
@@ -1736,7 +1736,7 @@ init_aix_thread_ops (void)
   aix_thread_ops.to_wait               = aix_thread_wait;
   aix_thread_ops.to_fetch_registers    = aix_thread_fetch_registers;
   aix_thread_ops.to_store_registers    = aix_thread_store_registers;
-  aix_thread_ops.to_xfer_memory        = aix_thread_xfer_memory;
+  aix_thread_ops.deprecated_xfer_memory = aix_thread_xfer_memory;
   /* No need for aix_thread_ops.to_create_inferior, because we activate thread
      debugging when the inferior reaches pd_brk_addr.  */
   aix_thread_ops.to_kill               = aix_thread_kill;
index 64869e5464c2284c20165aeb1df7d8108165936c..300379d954fa5898ed9d69dcbd44f3416f0478bd 100644 (file)
@@ -285,7 +285,7 @@ Optionally specify the filename of a core dump.";
   bsd_kvm_ops.to_open = bsd_kvm_open;
   bsd_kvm_ops.to_close = bsd_kvm_close;
   bsd_kvm_ops.to_fetch_registers = bsd_kvm_fetch_registers;
-  bsd_kvm_ops.to_xfer_memory = bsd_kvm_xfer_memory;
+  bsd_kvm_ops.deprecated_xfer_memory = bsd_kvm_xfer_memory;
   bsd_kvm_ops.to_stratum = process_stratum;
   bsd_kvm_ops.to_has_memory = 1;
   bsd_kvm_ops.to_has_stack = 1;
index a9d213284384c506bc5f71ed0c9a699b0bdc3d55..f91ec590ad004e4844fe094671d4e0ebd2002b07 100644 (file)
@@ -538,11 +538,11 @@ core_xfer_partial (struct target_ops *ops, enum target_object object,
     {
     case TARGET_OBJECT_MEMORY:
       if (readbuf)
-       return (*ops->to_xfer_memory) (offset, readbuf, len, 0/*write*/,
-                                      NULL, ops);
+       return (*ops->deprecated_xfer_memory) (offset, readbuf, len,
+                                              0/*write*/, NULL, ops);
       if (writebuf)
-       return (*ops->to_xfer_memory) (offset, readbuf, len, 1/*write*/,
-                                      NULL, ops);
+       return (*ops->deprecated_xfer_memory) (offset, readbuf, len,
+                                              1/*write*/, NULL, ops);
       return -1;
 
     case TARGET_OBJECT_AUXV:
@@ -655,7 +655,7 @@ init_core_ops (void)
   core_ops.to_detach = core_detach;
   core_ops.to_fetch_registers = get_core_registers;
   core_ops.to_xfer_partial = core_xfer_partial;
-  core_ops.to_xfer_memory = xfer_memory;
+  core_ops.deprecated_xfer_memory = xfer_memory;
   core_ops.to_files_info = core_files_info;
   core_ops.to_insert_breakpoint = ignore;
   core_ops.to_remove_breakpoint = ignore;
index 7eaa15ab2ff7749e3d86074abe2a23c772f9f294..f3246cacb8908593ef2e5960d61363227d6dcb70 100644 (file)
@@ -699,7 +699,7 @@ Specify the filename of the executable file.";
   exec_ops.to_open = exec_open;
   exec_ops.to_close = exec_close;
   exec_ops.to_attach = find_default_attach;
-  exec_ops.to_xfer_memory = xfer_memory;
+  exec_ops.deprecated_xfer_memory = xfer_memory;
   exec_ops.to_files_info = exec_files_info;
   exec_ops.to_insert_breakpoint = ignore;
   exec_ops.to_remove_breakpoint = ignore;
index f43d1ba0d1396ef3d74bf092403c00be40b62ca5..c10e6e614568c0d21659dab9b35252122793b1ce 100644 (file)
@@ -2597,7 +2597,7 @@ init_gnu_ops (void)
   gnu_ops.to_fetch_registers = gnu_fetch_registers;    /* to_fetch_registers */
   gnu_ops.to_store_registers = gnu_store_registers;    /* to_store_registers */
   gnu_ops.to_prepare_to_store = gnu_prepare_to_store; /* to_prepare_to_store */
-  gnu_ops.to_xfer_memory = gnu_xfer_memory; /* to_xfer_memory */
+  gnu_ops.deprecated_xfer_memory = gnu_xfer_memory;
   gnu_ops.to_find_memory_regions = gnu_find_memory_regions;
   gnu_ops.to_insert_breakpoint = memory_insert_breakpoint;
   gnu_ops.to_remove_breakpoint = memory_remove_breakpoint;
index ec3b5aa650b616fab52fdcdd922401e9657c3cff..c34db892fc9db4072ea6b4672d4ad6419f4f74f7 100644 (file)
@@ -861,7 +861,7 @@ init_go32_ops (void)
   go32_ops.to_fetch_registers = go32_fetch_registers;
   go32_ops.to_store_registers = go32_store_registers;
   go32_ops.to_prepare_to_store = go32_prepare_to_store;
-  go32_ops.to_xfer_memory = go32_xfer_memory;
+  go32_ops.deprecated_xfer_memory = go32_xfer_memory;
   go32_ops.to_files_info = go32_files_info;
   go32_ops.to_insert_breakpoint = memory_insert_breakpoint;
   go32_ops.to_remove_breakpoint = memory_remove_breakpoint;
index 93259b99e98341405138ceae519c93a72ab398eb..e9f6cfb6b6e7c971ead6d06b278b0b63005eca50 100644 (file)
@@ -403,7 +403,7 @@ hpux_thread_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
   inferior_ptid = main_ptid;
 
   retval = 
-    deprecated_child_ops.to_xfer_memory (memaddr, myaddr, len, dowrite, attribs, target);
+    deprecated_child_ops.deprecated_xfer_memory (memaddr, myaddr, len, dowrite, attribs, target);
 
   do_cleanups (old_chain);
 
@@ -550,7 +550,7 @@ init_hpux_thread_ops (void)
   hpux_thread_ops.to_fetch_registers = hpux_thread_fetch_registers;
   hpux_thread_ops.to_store_registers = hpux_thread_store_registers;
   hpux_thread_ops.to_prepare_to_store = hpux_thread_prepare_to_store;
-  hpux_thread_ops.to_xfer_memory = hpux_thread_xfer_memory;
+  hpux_thread_ops.deprecated_xfer_memory = hpux_thread_xfer_memory;
   hpux_thread_ops.to_files_info = hpux_thread_files_info;
   hpux_thread_ops.to_insert_breakpoint = memory_insert_breakpoint;
   hpux_thread_ops.to_remove_breakpoint = memory_remove_breakpoint;
index 27405934ba7ad42c8840245fc2958280a92885ef..e9ace23a17fa386eac7fe9a1247c0290554caf03 100644 (file)
@@ -593,7 +593,7 @@ init_child_ops (void)
   deprecated_child_ops.to_fetch_registers = fetch_inferior_registers;
   deprecated_child_ops.to_store_registers = store_inferior_registers;
   deprecated_child_ops.to_prepare_to_store = child_prepare_to_store;
-  deprecated_child_ops.to_xfer_memory = child_xfer_memory;
+  deprecated_child_ops.deprecated_xfer_memory = child_xfer_memory;
   deprecated_child_ops.to_xfer_partial = child_xfer_partial;
   deprecated_child_ops.to_files_info = child_files_info;
   deprecated_child_ops.to_insert_breakpoint = memory_insert_breakpoint;
index 93d81c00673ba56511b7fe64858d3679012389ce..9c40f772e64305eec16c5417ffba9953790d85ae 100644 (file)
@@ -2332,7 +2332,7 @@ init_linux_nat_ops (void)
      honor the LWP id, so we can use them directly.  */
   linux_nat_ops.to_fetch_registers = fetch_inferior_registers;
   linux_nat_ops.to_store_registers = store_inferior_registers;
-  linux_nat_ops.to_xfer_memory = linux_nat_xfer_memory;
+  linux_nat_ops.deprecated_xfer_memory = linux_nat_xfer_memory;
   linux_nat_ops.to_kill = linux_nat_kill;
   linux_nat_ops.to_create_inferior = linux_nat_create_inferior;
   linux_nat_ops.to_mourn_inferior = linux_nat_mourn_inferior;
index 0fb44a1100e6e07564375e72b5c3849082c34c01..5e50713ed839104b758ac1dd0aef13f1b53ea1de 100644 (file)
@@ -2256,7 +2256,7 @@ init_base_monitor_ops (void)
   monitor_ops.to_fetch_registers = monitor_fetch_registers;
   monitor_ops.to_store_registers = monitor_store_registers;
   monitor_ops.to_prepare_to_store = monitor_prepare_to_store;
-  monitor_ops.to_xfer_memory = monitor_xfer_memory;
+  monitor_ops.deprecated_xfer_memory = monitor_xfer_memory;
   monitor_ops.to_files_info = monitor_files_info;
   monitor_ops.to_insert_breakpoint = monitor_insert_breakpoint;
   monitor_ops.to_remove_breakpoint = monitor_remove_breakpoint;
index 910156601a6997f9142789db6d227d9d8be091e8..227d4e39f5e8824c76275388ac7943921fd4c03c 100644 (file)
@@ -1272,7 +1272,7 @@ init_procfs_ops (void)
   procfs_ops.to_fetch_registers = procfs_fetch_registers;
   procfs_ops.to_store_registers = procfs_store_registers;
   procfs_ops.to_prepare_to_store = procfs_prepare_to_store;
-  procfs_ops.to_xfer_memory = procfs_xfer_memory;
+  procfs_ops.deprecated_xfer_memory = procfs_xfer_memory;
   procfs_ops.to_files_info = procfs_files_info;
   procfs_ops.to_insert_breakpoint = procfs_insert_breakpoint;
   procfs_ops.to_remove_breakpoint = procfs_remove_breakpoint;
index e7eefca955123feba87e598b5175320dc7a90682..16d2532a72e29ed0e7005e01289a330eabb6220e 100644 (file)
@@ -325,7 +325,7 @@ a wiggler, specify wiggler and then the port it is connected to\n\
   bdm_ppc_ops.to_fetch_registers = bdm_ppc_fetch_registers;
   bdm_ppc_ops.to_store_registers = bdm_ppc_store_registers;
   bdm_ppc_ops.to_prepare_to_store = ocd_prepare_to_store;
-  bdm_ppc_ops.to_xfer_memory = ocd_xfer_memory;
+  bdm_ppc_ops.deprecated_xfer_memory = ocd_xfer_memory;
   bdm_ppc_ops.to_files_info = ocd_files_info;
   bdm_ppc_ops.to_insert_breakpoint = ocd_insert_breakpoint;
   bdm_ppc_ops.to_remove_breakpoint = ocd_remove_breakpoint;
index 467135b405475eb1216f18470986b509452ccee5..7e31a7ffcb6f341c5ea2c93daa5bf778c27de3df 100644 (file)
@@ -172,7 +172,7 @@ init_procfs_ops (void)
   procfs_ops.to_fetch_registers     = procfs_fetch_registers;
   procfs_ops.to_store_registers     = procfs_store_registers;
   procfs_ops.to_xfer_partial        = procfs_xfer_partial;
-  procfs_ops.to_xfer_memory         = procfs_xfer_memory;
+  procfs_ops.deprecated_xfer_memory = procfs_xfer_memory;
   procfs_ops.to_insert_breakpoint   =  memory_insert_breakpoint;
   procfs_ops.to_remove_breakpoint   =  memory_remove_breakpoint;
   procfs_ops.to_notice_signals      = procfs_notice_signals;
@@ -4326,11 +4326,11 @@ procfs_xfer_partial (struct target_ops *ops, enum target_object object,
     {
     case TARGET_OBJECT_MEMORY:
       if (readbuf)
-       return (*ops->to_xfer_memory) (offset, readbuf, len, 0/*write*/,
-                                      NULL, ops);
+       return (*ops->deprecated_xfer_memory) (offset, readbuf, len,
+                                              0/*write*/, NULL, ops);
       if (writebuf)
-       return (*ops->to_xfer_memory) (offset, writebuf, len, 1/*write*/,
-                                      NULL, ops);
+       return (*ops->deprecated_xfer_memory) (offset, writebuf, len,
+                                              1/*write*/, NULL, ops);
       return -1;
 
 #ifdef NEW_PROC_API
index 965ea9718cf97fc7ef8402167d8a75e0cdb31958..405a6b53411a2ac2da620a55d92bb63a576ddef2 100644 (file)
@@ -2150,7 +2150,7 @@ target e7000 foobar";
   e7000_ops.to_fetch_registers = e7000_fetch_register;
   e7000_ops.to_store_registers = e7000_store_register;
   e7000_ops.to_prepare_to_store = e7000_prepare_to_store;
-  e7000_ops.to_xfer_memory = e7000_xfer_inferior_memory;
+  e7000_ops.deprecated_xfer_memory = e7000_xfer_inferior_memory;
   e7000_ops.to_files_info = e7000_files_info;
   e7000_ops.to_insert_breakpoint = e7000_insert_breakpoint;
   e7000_ops.to_remove_breakpoint = e7000_remove_breakpoint;
index f65f5ae165d2b169e469424c8798d32c804d410a..cca045e3cbc70b54d4c4e5f59de0ed6e34fb50c1 100644 (file)
@@ -1575,7 +1575,7 @@ init_m32r_ops (void)
   m32r_ops.to_fetch_registers = m32r_fetch_register;
   m32r_ops.to_store_registers = m32r_store_register;
   m32r_ops.to_prepare_to_store = m32r_prepare_to_store;
-  m32r_ops.to_xfer_memory = m32r_xfer_memory;
+  m32r_ops.deprecated_xfer_memory = m32r_xfer_memory;
   m32r_ops.to_files_info = m32r_files_info;
   m32r_ops.to_insert_breakpoint = m32r_insert_breakpoint;
   m32r_ops.to_remove_breakpoint = m32r_remove_breakpoint;
index b7dc35e0ffcdb1e106fb06a02c1c036a1b67a0f9..175a4f96f033755a200b474fdbd1a954c2e357e5 100644 (file)
@@ -3306,7 +3306,7 @@ _initialize_remote_mips (void)
   mips_ops.to_fetch_registers = mips_fetch_registers;
   mips_ops.to_store_registers = mips_store_registers;
   mips_ops.to_prepare_to_store = mips_prepare_to_store;
-  mips_ops.to_xfer_memory = mips_xfer_memory;
+  mips_ops.deprecated_xfer_memory = mips_xfer_memory;
   mips_ops.to_files_info = mips_files_info;
   mips_ops.to_insert_breakpoint = mips_insert_breakpoint;
   mips_ops.to_remove_breakpoint = mips_remove_breakpoint;
index 1c14a03b43f705790f06f56c559cbfb7af2e7d54..2571b785582dc0a6d0e5e1ec06210f0e4cabed55 100644 (file)
@@ -895,7 +895,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).";
   arm_rdi_ops.to_fetch_registers = arm_rdi_fetch_registers;
   arm_rdi_ops.to_store_registers = arm_rdi_store_registers;
   arm_rdi_ops.to_prepare_to_store = arm_rdi_prepare_to_store;
-  arm_rdi_ops.to_xfer_memory = arm_rdi_xfer_memory;
+  arm_rdi_ops.deprecated_xfer_memory = arm_rdi_xfer_memory;
   arm_rdi_ops.to_files_info = arm_rdi_files_info;
   arm_rdi_ops.to_insert_breakpoint = arm_rdi_insert_breakpoint;
   arm_rdi_ops.to_remove_breakpoint = arm_rdi_remove_breakpoint;
index 20683110232a7236ebca7ccc0fa9b8fb585d293a..d480d5331eea106c566fdf0f6bbe67229ff0ba5a 100644 (file)
@@ -1405,7 +1405,7 @@ init_remote_rdp_ops (void)
   remote_rdp_ops.to_fetch_registers = remote_rdp_fetch_register;
   remote_rdp_ops.to_store_registers = remote_rdp_store_register;
   remote_rdp_ops.to_prepare_to_store = remote_rdp_prepare_to_store;
-  remote_rdp_ops.to_xfer_memory = remote_rdp_xfer_inferior_memory;
+  remote_rdp_ops.deprecated_xfer_memory = remote_rdp_xfer_inferior_memory;
   remote_rdp_ops.to_files_info = remote_rdp_files_info;
   remote_rdp_ops.to_insert_breakpoint = remote_rdp_insert_breakpoint;
   remote_rdp_ops.to_remove_breakpoint = remote_rdp_remove_breakpoint;
index 5b4b3898adb9e30b0c0d7c876854aaa0a6060749..0bf1c01c82af7c0e6c05f690aba6f27c51988694 100644 (file)
@@ -1061,7 +1061,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).";
   sds_ops.to_fetch_registers = sds_fetch_registers;
   sds_ops.to_store_registers = sds_store_registers;
   sds_ops.to_prepare_to_store = sds_prepare_to_store;
-  sds_ops.to_xfer_memory = sds_xfer_memory;
+  sds_ops.deprecated_xfer_memory = sds_xfer_memory;
   sds_ops.to_files_info = sds_files_info;
   sds_ops.to_insert_breakpoint = sds_insert_breakpoint;
   sds_ops.to_remove_breakpoint = sds_remove_breakpoint;
index 7a5c7b0aba96eb99f3d80da814a9bed68fde0388..9e377ae083ea1746421c78b8e4d5c7da8808f1a8 100644 (file)
@@ -863,7 +863,7 @@ init_gdbsim_ops (void)
   gdbsim_ops.to_fetch_registers = gdbsim_fetch_register;
   gdbsim_ops.to_store_registers = gdbsim_store_register;
   gdbsim_ops.to_prepare_to_store = gdbsim_prepare_to_store;
-  gdbsim_ops.to_xfer_memory = gdbsim_xfer_inferior_memory;
+  gdbsim_ops.deprecated_xfer_memory = gdbsim_xfer_inferior_memory;
   gdbsim_ops.to_files_info = gdbsim_files_info;
   gdbsim_ops.to_insert_breakpoint = gdbsim_insert_breakpoint;
   gdbsim_ops.to_remove_breakpoint = gdbsim_remove_breakpoint;
index eba847fde743a4e35e0278670ac2bf50a34c99e0..a71998c2f5ffdc99c2867e9dc6379b0ea038eb75 100644 (file)
@@ -775,7 +775,7 @@ the speed to connect at in bits per second.";
   st2000_ops.to_fetch_registers = st2000_fetch_register;
   st2000_ops.to_store_registers = st2000_store_register;
   st2000_ops.to_prepare_to_store = st2000_prepare_to_store;
-  st2000_ops.to_xfer_memory = st2000_xfer_inferior_memory;
+  st2000_ops.deprecated_xfer_memory = st2000_xfer_inferior_memory;
   st2000_ops.to_files_info = st2000_files_info;
   st2000_ops.to_insert_breakpoint = st2000_insert_breakpoint;
   st2000_ops.to_remove_breakpoint = st2000_remove_breakpoint;  /* Breakpoints */
index de5cc03fb4189cc3a09898f07d17137aa3e65bd5..76baff564e875bae3396b7e81d915f090332e59c 100644 (file)
@@ -1343,7 +1343,7 @@ Specify the name of the machine to connect to.";
   vx_ops.to_open = vx_open;
   vx_ops.to_close = vx_close;
   vx_ops.to_attach = vx_attach;
-  vx_ops.to_xfer_memory = vx_xfer_memory;
+  vx_ops.deprecated_xfer_memory = vx_xfer_memory;
   vx_ops.to_files_info = vx_files_info;
   vx_ops.to_load = vx_load_command;
   vx_ops.to_lookup_symbol = vx_lookup_symbol;
@@ -1368,7 +1368,7 @@ init_vx_run_ops (void)
   vx_run_ops.to_fetch_registers = vx_read_register;
   vx_run_ops.to_store_registers = vx_write_register;
   vx_run_ops.to_prepare_to_store = vx_prepare_to_store;
-  vx_run_ops.to_xfer_memory = vx_xfer_memory;
+  vx_run_ops.deprecated_xfer_memory = vx_xfer_memory;
   vx_run_ops.to_files_info = vx_run_files_info;
   vx_run_ops.to_insert_breakpoint = vx_insert_breakpoint;
   vx_run_ops.to_remove_breakpoint = vx_remove_breakpoint;
index 2d57686d162aaf3573abefc181df3db3eaa42e76..c389c4a7f3b699fcfa11da5f7758e90c3bb51d97 100644 (file)
@@ -5247,7 +5247,7 @@ Specify the serial device it is connected to\n\
   remote_ops.to_fetch_registers = remote_fetch_registers;
   remote_ops.to_store_registers = remote_store_registers;
   remote_ops.to_prepare_to_store = remote_prepare_to_store;
-  remote_ops.to_xfer_memory = remote_xfer_memory;
+  remote_ops.deprecated_xfer_memory = remote_xfer_memory;
   remote_ops.to_files_info = remote_files_info;
   remote_ops.to_insert_breakpoint = remote_insert_breakpoint;
   remote_ops.to_remove_breakpoint = remote_remove_breakpoint;
@@ -5367,7 +5367,7 @@ Specify the serial device it is connected to (e.g. /dev/ttya).";
   remote_async_ops.to_fetch_registers = remote_fetch_registers;
   remote_async_ops.to_store_registers = remote_store_registers;
   remote_async_ops.to_prepare_to_store = remote_prepare_to_store;
-  remote_async_ops.to_xfer_memory = remote_xfer_memory;
+  remote_async_ops.deprecated_xfer_memory = remote_xfer_memory;
   remote_async_ops.to_files_info = remote_files_info;
   remote_async_ops.to_insert_breakpoint = remote_insert_breakpoint;
   remote_async_ops.to_remove_breakpoint = remote_remove_breakpoint;
index 393f976f9ee22caed20e0237e650318e518b97b4..820317b167de24c753cbc98fe61482d79fa74e07 100644 (file)
@@ -680,11 +680,11 @@ sol_thread_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
     }
 
   if (target_has_execution)
-    retval = procfs_ops.to_xfer_memory (memaddr, myaddr, len,
-                                       dowrite, attrib, target);
+    retval = procfs_ops.deprecated_xfer_memory (memaddr, myaddr, len,
+                                               dowrite, attrib, target);
   else
-    retval = orig_core_ops.to_xfer_memory (memaddr, myaddr, len,
-                                          dowrite, attrib, target);
+    retval = orig_core_ops.deprecated_xfer_memory (memaddr, myaddr, len,
+                                                  dowrite, attrib, target);
 
   do_cleanups (old_chain);
 
@@ -1014,11 +1014,11 @@ rw_common (int dowrite, const struct ps_prochandle *ph, gdb_ps_addr_t addr,
 
       /* FIXME: passing 0 as attrib argument.  */
       if (target_has_execution)
-       cc = procfs_ops.to_xfer_memory (addr, buf, size,
-                                       dowrite, 0, &procfs_ops);
+       cc = procfs_ops.deprecated_xfer_memory (addr, buf, size,
+                                               dowrite, 0, &procfs_ops);
       else
-       cc = orig_core_ops.to_xfer_memory (addr, buf, size,
-                                          dowrite, 0, &core_ops);
+       cc = orig_core_ops.deprecated_xfer_memory (addr, buf, size,
+                                                  dowrite, 0, &core_ops);
 
       if (cc < 0)
        {
@@ -1541,7 +1541,7 @@ init_sol_thread_ops (void)
   sol_thread_ops.to_fetch_registers = sol_thread_fetch_registers;
   sol_thread_ops.to_store_registers = sol_thread_store_registers;
   sol_thread_ops.to_prepare_to_store = sol_thread_prepare_to_store;
-  sol_thread_ops.to_xfer_memory = sol_thread_xfer_memory;
+  sol_thread_ops.deprecated_xfer_memory = sol_thread_xfer_memory;
   sol_thread_ops.to_xfer_partial = sol_thread_xfer_partial;
   sol_thread_ops.to_files_info = sol_thread_files_info;
   sol_thread_ops.to_insert_breakpoint = memory_insert_breakpoint;
@@ -1584,7 +1584,7 @@ init_sol_core_ops (void)
   sol_core_ops.to_attach = sol_thread_attach;
   sol_core_ops.to_detach = sol_core_detach;
   sol_core_ops.to_fetch_registers = sol_thread_fetch_registers;
-  sol_core_ops.to_xfer_memory = sol_thread_xfer_memory;
+  sol_core_ops.deprecated_xfer_memory = sol_thread_xfer_memory;
   sol_core_ops.to_xfer_partial = sol_thread_xfer_partial;
   sol_core_ops.to_files_info = sol_core_files_info;
   sol_core_ops.to_insert_breakpoint = ignore;
index 2f27bfad383c33965d925d86ec09b31ef99b84be..81389a778fbb54cbd5e5046a0e2fd7d164814dd4 100644 (file)
@@ -108,8 +108,9 @@ static void debug_to_store_registers (int);
 
 static void debug_to_prepare_to_store (void);
 
-static int debug_to_xfer_memory (CORE_ADDR, char *, int, int,
-                                struct mem_attrib *, struct target_ops *);
+static int deprecated_debug_xfer_memory (CORE_ADDR, char *, int, int,
+                                        struct mem_attrib *,
+                                        struct target_ops *);
 
 static void debug_to_files_info (struct target_ops *);
 
@@ -390,7 +391,7 @@ update_current_target (void)
       INHERIT (to_fetch_registers, t);
       INHERIT (to_store_registers, t);
       INHERIT (to_prepare_to_store, t);
-      INHERIT (to_xfer_memory, t);
+      INHERIT (deprecated_xfer_memory, t);
       INHERIT (to_files_info, t);
       INHERIT (to_insert_breakpoint, t);
       INHERIT (to_remove_breakpoint, t);
@@ -497,7 +498,7 @@ update_current_target (void)
   de_fault (to_prepare_to_store, 
            (void (*) (void)) 
            noprocess);
-  de_fault (to_xfer_memory, 
+  de_fault (deprecated_xfer_memory, 
            (int (*) (CORE_ADDR, char *, int, int, struct mem_attrib *, struct target_ops *)) 
            nomemory);
   de_fault (to_files_info, 
@@ -1047,8 +1048,8 @@ do_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
   if (len == 0)
     return 0;
 
-  /* to_xfer_memory is not guaranteed to set errno, even when it returns
-     0.  */
+  /* deprecated_xfer_memory is not guaranteed to set errno, even when
+     it returns 0.  */
   errno = 0;
 
   if (!write && trust_readonly)
@@ -1065,7 +1066,7 @@ do_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
     }
 
   /* The quick case is that the top target can handle the transfer.  */
-  res = current_target.to_xfer_memory
+  res = current_target.deprecated_xfer_memory
     (memaddr, myaddr, len, write, attrib, &current_target);
 
   /* If res <= 0 then we call it again in the loop.  Ah well. */
@@ -1076,7 +1077,7 @@ do_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
          if (!t->to_has_memory)
            continue;
 
-         res = t->to_xfer_memory (memaddr, myaddr, len, write, attrib, t);
+         res = t->deprecated_xfer_memory (memaddr, myaddr, len, write, attrib, t);
          if (res > 0)
            break;              /* Handled all or part of xfer */
          if (t->to_has_all_memory)
@@ -1256,9 +1257,9 @@ default_xfer_partial (struct target_ops *ops, enum target_object object,
                      const void *writebuf, ULONGEST offset, LONGEST len)
 {
   if (object == TARGET_OBJECT_MEMORY
-      && ops->to_xfer_memory != NULL)
-    /* If available, fall back to the target's "to_xfer_memory"
-       method.  */
+      && ops->deprecated_xfer_memory != NULL)
+    /* If available, fall back to the target's
+       "deprecated_xfer_memory" method.  */
     {
       int xfered = -1;
       errno = 0;
@@ -1267,18 +1268,18 @@ default_xfer_partial (struct target_ops *ops, enum target_object object,
          void *buffer = xmalloc (len);
          struct cleanup *cleanup = make_cleanup (xfree, buffer);
          memcpy (buffer, writebuf, len);
-         xfered = ops->to_xfer_memory (offset, buffer, len, 1/*write*/, NULL,
-                                       ops);
+         xfered = ops->deprecated_xfer_memory (offset, buffer, len,
+                                               1/*write*/, NULL, ops);
          do_cleanups (cleanup);
        }
       if (readbuf != NULL)
-       xfered = ops->to_xfer_memory (offset, readbuf, len, 0/*read*/, NULL,
-                                     ops);
+       xfered = ops->deprecated_xfer_memory (offset, readbuf, len, 0/*read*/,
+                                             NULL, ops);
       if (xfered > 0)
        return xfered;
       else if (xfered == 0 && errno == 0)
-       /* "to_xfer_memory" uses 0, cross checked against ERRNO as one
-           indication of an error.  */
+       /* "deprecated_xfer_memory" uses 0, cross checked against
+           ERRNO as one indication of an error.  */
        return 0;
       else
        return -1;
@@ -1964,14 +1965,14 @@ debug_to_prepare_to_store (void)
 }
 
 static int
-debug_to_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
-                     struct mem_attrib *attrib,
-                     struct target_ops *target)
+deprecated_debug_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len,
+                             int write, struct mem_attrib *attrib,
+                             struct target_ops *target)
 {
   int retval;
 
-  retval = debug_target.to_xfer_memory (memaddr, myaddr, len, write,
-                                       attrib, target);
+  retval = debug_target.deprecated_xfer_memory (memaddr, myaddr, len, write,
+                                               attrib, target);
 
   fprintf_unfiltered (gdb_stdlog,
                      "target_xfer_memory (0x%x, xxx, %d, %s, xxx) = %d",
@@ -2487,7 +2488,7 @@ setup_target_debug (void)
   current_target.to_fetch_registers = debug_to_fetch_registers;
   current_target.to_store_registers = debug_to_store_registers;
   current_target.to_prepare_to_store = debug_to_prepare_to_store;
-  current_target.to_xfer_memory = debug_to_xfer_memory;
+  current_target.deprecated_xfer_memory = deprecated_debug_xfer_memory;
   current_target.to_files_info = debug_to_files_info;
   current_target.to_insert_breakpoint = debug_to_insert_breakpoint;
   current_target.to_remove_breakpoint = debug_to_remove_breakpoint;
index 9a4f76a65a1358c459bbf57a486811d5cd27efe7..84c284b268c44177b2683938e6e7a77877abc915 100644 (file)
@@ -324,12 +324,15 @@ struct target_ops
 
        negative (call its absolute value N) means that we cannot
        transfer right at MEMADDR, but we could transfer at least
-       something at MEMADDR + N.  */
+       something at MEMADDR + N.
 
-    int (*to_xfer_memory) (CORE_ADDR memaddr, char *myaddr,
-                          int len, int write,
-                          struct mem_attrib *attrib,
-                          struct target_ops *target);
+       NOTE: cagney/2004-10-01: This has been entirely superseeded by
+       to_xfer_partial and inferior inheritance.  */
+
+    int (*deprecated_xfer_memory) (CORE_ADDR memaddr, char *myaddr,
+                                  int len, int write,
+                                  struct mem_attrib *attrib,
+                                  struct target_ops *target);
 
     void (*to_files_info) (struct target_ops *);
     int (*to_insert_breakpoint) (CORE_ADDR, char *);
index 8bf52924b3e1e5dfe5c9fe07b12282da58bbd78d..65d9fd51b89f93c7183fde7623b2cafb655db520 100644 (file)
@@ -987,8 +987,8 @@ thread_db_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
     }
 
   xfer =
-    target_beneath->to_xfer_memory (memaddr, myaddr, len, write, attrib,
-                                   target);
+    target_beneath->deprecated_xfer_memory (memaddr, myaddr, len, write,
+                                           attrib, target);
 
   do_cleanups (old_chain);
   return xfer;
@@ -1339,7 +1339,7 @@ init_thread_db_ops (void)
   thread_db_ops.to_wait = thread_db_wait;
   thread_db_ops.to_fetch_registers = thread_db_fetch_registers;
   thread_db_ops.to_store_registers = thread_db_store_registers;
-  thread_db_ops.to_xfer_memory = thread_db_xfer_memory;
+  thread_db_ops.deprecated_xfer_memory = thread_db_xfer_memory;
   thread_db_ops.to_kill = thread_db_kill;
   thread_db_ops.to_create_inferior = thread_db_create_inferior;
   thread_db_ops.to_post_startup_inferior = thread_db_post_startup_inferior;
index c37e0ffeb70b59292de1c086eac3df03e4d2f34c..a7b6bc261ab5f87d75b822caef5deccd64c3cc3c 100644 (file)
@@ -332,8 +332,9 @@ dbgstate (int state)
 static int
 read_thr_debug (struct thread_debug *debugp)
 {
-  return base_ops.to_xfer_memory (thr_debug_addr, (char *)debugp,
-                                 sizeof (*debugp), 0, NULL, &base_ops);
+  return base_ops.deprecated_xfer_memory (thr_debug_addr, (char *)debugp,
+                                         sizeof (*debugp), 0, NULL,
+                                         &base_ops);
 }
 
 /* Read into MAP the contents of the thread map at inferior process address
@@ -342,8 +343,9 @@ read_thr_debug (struct thread_debug *debugp)
 static int
 read_map (CORE_ADDR mapp, struct thread_map *map)
 {
-  return base_ops.to_xfer_memory ((CORE_ADDR)THR_MAP (mapp), (char *)map,
-                                 sizeof (*map), 0, NULL, &base_ops);
+  return base_ops.deprecated_xfer_memory ((CORE_ADDR)THR_MAP (mapp),
+                                         (char *)map, sizeof (*map),
+                                         0, NULL, &base_ops);
 }
 
 /* Read into LWP the contents of the lwp decriptor at inferior process address
@@ -352,8 +354,8 @@ read_map (CORE_ADDR mapp, struct thread_map *map)
 static int
 read_lwp (CORE_ADDR lwpp, __lwp_desc_t *lwp)
 {
-  return base_ops.to_xfer_memory (lwpp, (char *)lwp,
-                                 sizeof (*lwp), 0, NULL, &base_ops);
+  return base_ops.deprecated_xfer_memory (lwpp, (char *)lwp,
+                                         sizeof (*lwp), 0, NULL, &base_ops);
 }
 
 /* Iterate through all user threads, applying FUNC(<map>, <lwp>, DATA) until
@@ -375,8 +377,9 @@ thread_iter (int (*func)(iter_t *, void *), void *data)
 
   if (!read_thr_debug (&debug))
     return 0;
-  if (!base_ops.to_xfer_memory ((CORE_ADDR)debug.thr_map, (char *)&mapp,
-                               sizeof (mapp), 0, NULL, &base_ops))
+  if (!base_ops.deprecated_xfer_memory ((CORE_ADDR)debug.thr_map,
+                                       (char *)&mapp, sizeof (mapp), 0, NULL,
+                                       &base_ops))
     return 0;
   if (!mapp)
     return 0;
@@ -633,11 +636,12 @@ libthread_stub (ptid_t ptid)
 
   /* Retrieve stub args. */
   sp = read_register_pid (SP_REGNUM, ptid);
-  if (!base_ops.to_xfer_memory (sp + SP_ARG0, (char *)&mapp,
-                               sizeof (mapp), 0, NULL, &base_ops))
+  if (!base_ops.deprecated_xfer_memory (sp + SP_ARG0, (char *)&mapp,
+                                       sizeof (mapp), 0, NULL, &base_ops))
     goto err;
-  if (!base_ops.to_xfer_memory (sp + SP_ARG0 + sizeof (mapp), (char *)&change,
-                               sizeof (change), 0, NULL, &base_ops))
+  if (!base_ops.deprecated_xfer_memory (sp + SP_ARG0 + sizeof (mapp),
+                                       (char *)&change, sizeof (change), 0,
+                                       NULL, &base_ops))
     goto err;
 
   /* create_inferior() may not have finished yet, so notice the main
@@ -953,7 +957,7 @@ libthread_init (void)
   if (!(thr_debug_addr = SYMBOL_VALUE_ADDRESS (ms)))
     return;
 
-  /* Initialize base_ops.to_xfer_memory(). */
+  /* Initialize base_ops.deprecated_xfer_memory().  */
   base_ops = current_target;
 
   /* Load _thr_debug's current contents. */
@@ -984,8 +988,8 @@ libthread_init (void)
 
       /* Activate the stub function. */
       onp = (CORE_ADDR)&((struct thread_debug *)thr_debug_addr)->thr_debug_on;
-      if (!base_ops.to_xfer_memory ((CORE_ADDR)onp, (char *)&one,
-                                   sizeof (one), 1, NULL, &base_ops))
+      if (!base_ops.deprecated_xfer_memory ((CORE_ADDR)onp, (char *)&one,
+                                           sizeof (one), 1, NULL, &base_ops))
        {
          delete_breakpoint (b);
          goto err;
index 21daeea6f00029acd720b8a5c50505056f24fc12..93746ff92616d42976c987878e8ffb04cc53b2b7 100644 (file)
@@ -899,7 +899,7 @@ init_850ice_ops (void)
   v850ice_ops.to_fetch_registers = v850ice_fetch_registers;
   v850ice_ops.to_store_registers = v850ice_store_registers;
   v850ice_ops.to_prepare_to_store = v850ice_prepare_to_store;
-  v850ice_ops.to_xfer_memory = v850ice_xfer_memory;
+  v850ice_ops.deprecated_xfer_memory = v850ice_xfer_memory;
   v850ice_ops.to_files_info = v850ice_files_info;
   v850ice_ops.to_insert_breakpoint = v850ice_insert_breakpoint;
   v850ice_ops.to_remove_breakpoint = v850ice_remove_breakpoint;
index d5cfe8e353aaae1df0d413743344c8a8718f4be4..9845d46192d713e8e82390e34c1b69cea9be62a3 100644 (file)
@@ -2080,7 +2080,7 @@ init_child_ops (void)
   deprecated_child_ops.to_fetch_registers = child_fetch_inferior_registers;
   deprecated_child_ops.to_store_registers = child_store_inferior_registers;
   deprecated_child_ops.to_prepare_to_store = child_prepare_to_store;
-  deprecated_child_ops.to_xfer_memory = child_xfer_memory;
+  deprecated_child_ops.deprecated_xfer_memory = child_xfer_memory;
   deprecated_child_ops.to_files_info = child_files_info;
   deprecated_child_ops.to_insert_breakpoint = memory_insert_breakpoint;
   deprecated_child_ops.to_remove_breakpoint = memory_remove_breakpoint;
index d189755d8f470d5b0774ddce7ca564284263440f..0397bd45c013fec2e2e7cc55aee4dd66e51f992b 100644 (file)
@@ -1900,7 +1900,7 @@ init_child_ops (void)
   deprecated_child_ops.to_fetch_registers = child_fetch_inferior_registers;
   deprecated_child_ops.to_store_registers = child_store_inferior_registers;
   deprecated_child_ops.to_prepare_to_store = child_prepare_to_store;
-  deprecated_child_ops.to_xfer_memory = child_xfer_memory;
+  deprecated_child_ops.deprecated_xfer_memory = child_xfer_memory;
   deprecated_child_ops.to_files_info = child_files_info;
   deprecated_child_ops.to_insert_breakpoint = memory_insert_breakpoint;
   deprecated_child_ops.to_remove_breakpoint = memory_remove_breakpoint;
index d5cfe8e353aaae1df0d413743344c8a8718f4be4..9845d46192d713e8e82390e34c1b69cea9be62a3 100644 (file)
@@ -2080,7 +2080,7 @@ init_child_ops (void)
   deprecated_child_ops.to_fetch_registers = child_fetch_inferior_registers;
   deprecated_child_ops.to_store_registers = child_store_inferior_registers;
   deprecated_child_ops.to_prepare_to_store = child_prepare_to_store;
-  deprecated_child_ops.to_xfer_memory = child_xfer_memory;
+  deprecated_child_ops.deprecated_xfer_memory = child_xfer_memory;
   deprecated_child_ops.to_files_info = child_files_info;
   deprecated_child_ops.to_insert_breakpoint = memory_insert_breakpoint;
   deprecated_child_ops.to_remove_breakpoint = memory_remove_breakpoint;