diff options
author | Pedro Alves <palves@redhat.com> | 2013-08-27 11:05:39 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2013-08-27 11:05:39 +0000 |
commit | d28d46b5549a2edadeb75723c848adde33d0ccf3 (patch) | |
tree | 1db2f6343186e6671fa0de81ddc57818f1a1f228 | |
parent | 6211c335ec2c2428b70b65819f69b72d349527d5 (diff) | |
download | gdb-d28d46b5549a2edadeb75723c848adde33d0ccf3.zip gdb-d28d46b5549a2edadeb75723c848adde33d0ccf3.tar.gz gdb-d28d46b5549a2edadeb75723c848adde33d0ccf3.tar.bz2 |
darwin-nat.c: Don't install a deprecated_xfer_memory method.
darwin_xfer_partial already handles TARGET_OBJECT_MEMORY, so this
method is not necessary.
gdb/
2013-08-27 Pedro Alves <palves@redhat.com>
* darwin-nat.c (darwin_xfer_memory): Delete.
(_initialize_darwin_inferior): Don't install a
deprecated_xfer_memory method.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/darwin-nat.c | 21 |
2 files changed, 6 insertions, 21 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d41b1da..1416296 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-08-27 Pedro Alves <palves@redhat.com> + + * darwin-nat.c (darwin_xfer_memory): Delete. + (_initialize_darwin_inferior): Don't install a + deprecated_xfer_memory method. + 2013-08-27 Pedro Alves <pedro@codesourcery.com> Yao Qi <yao@codesourcery.com> diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index 4f851ce..153ffd0 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -1917,26 +1917,6 @@ darwin_read_dyld_info (task_t task, CORE_ADDR addr, gdb_byte *rdaddr, #endif -/* Return 0 on failure, number of bytes handled otherwise. TARGET - is ignored. */ -static int -darwin_xfer_memory (CORE_ADDR memaddr, gdb_byte *myaddr, int len, int write, - struct mem_attrib *attrib, struct target_ops *target) -{ - struct inferior *inf = current_inferior (); - task_t task = inf->private->task; - - if (task == MACH_PORT_NULL) - return 0; - - inferior_debug (8, _("darwin_xfer_memory(%s, %d, %c)\n"), - core_addr_to_string (memaddr), len, write ? 'w' : 'r'); - - if (write) - return darwin_read_write_inferior (task, memaddr, NULL, myaddr, len); - else - return darwin_read_write_inferior (task, memaddr, myaddr, NULL, len); -} static LONGEST darwin_xfer_partial (struct target_ops *ops, @@ -2123,7 +2103,6 @@ _initialize_darwin_inferior (void) darwin_ops->to_pid_to_str = darwin_pid_to_str; darwin_ops->to_pid_to_exec_file = darwin_pid_to_exec_file; darwin_ops->to_load = NULL; - darwin_ops->deprecated_xfer_memory = darwin_xfer_memory; darwin_ops->to_xfer_partial = darwin_xfer_partial; darwin_ops->to_supports_multi_process = darwin_supports_multi_process; darwin_ops->to_get_ada_task_ptid = darwin_get_ada_task_ptid; |