monitor.c: Don't install a deprecated_xfer_memory method.
authorPedro Alves <palves@redhat.com>
Wed, 9 Oct 2013 15:55:17 +0000 (15:55 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 9 Oct 2013 15:55:17 +0000 (15:55 +0000)
commit915215be09d492d167fa2a0d0c4d3f75cfb40157
treef63a6cd8d12c05b367b19b2b40040cfa7901b75c
parent6085f8537816a6350a92f7ee4f6a5e8469bdbcc3
monitor.c: Don't install a deprecated_xfer_memory method.

This removes another yet instance of a deprecated_xfer_memory user.

Tested by building a --enable-targets=all gdb, on x86-64 Fedora 17.

gdb/
2013-10-09  Pedro Alves  <palves@redhat.com>

* monitor.c (monitor_write_memory, monitor_write_memory_bytes)
(monitor_write_memory_longlongs, monitor_write_memory_block):
Constify 'myaddr' parameter.
(monitor_xfer_memory): Adjust interface as monitor_xfer_partial
helper.
(monitor_xfer_partial): New function.
(init_base_monitor_ops): Don't install a deprecated_xfer_memory
hook.  Install a to_xfer_partial hook.
gdb/ChangeLog
gdb/monitor.c