diff options
author | Pedro Alves <palves@redhat.com> | 2014-02-19 20:29:31 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@adacore.com> | 2014-02-24 12:49:33 -0500 |
commit | e96027e0d9b0a600aabd2c1c7cfdde6ce6d076e8 (patch) | |
tree | 270ed3ebd5f325a66bdf0c85b7725c1045bec67a /opcodes/fr30-opc.h | |
parent | 0837c976950e347cc48a1c55c6c8d60fc710c168 (diff) | |
download | gdb-e96027e0d9b0a600aabd2c1c7cfdde6ce6d076e8.zip gdb-e96027e0d9b0a600aabd2c1c7cfdde6ce6d076e8.tar.gz gdb-e96027e0d9b0a600aabd2c1c7cfdde6ce6d076e8.tar.bz2 |
procfs.c: Don't install a deprecated_xfer_memory method
This removes yet another instance of a deprecated_xfer_memory user,
and fixes a nasty regression as a side-effect:
(gdb) start
Temporary breakpoint 1 at 0x19070: file simple_main.adb, line 4.
Starting program: /[...]/simple_main
Warning:
Cannot insert breakpoint 1.
Cannot access memory at address 0x19070
Cannot insert breakpoint -3.
Temporarily disabling shared library breakpoints:
breakpoint #-3
The regression was introduced by the to_xfer_partial transition
to return a status enum. procfs_xfer_partial was updated but
not the case where object is TARGET_OBJECT_MEMORY. As result,
procfs_xfer_partial was returning the length xfered rather than
the status, and the xfered buffer was left uninitialized.
gdb/
2014-02-19 Pedro Alves <palves@redhat.com>
* procfs.c (procfs_target): Don't install procfs_xfer_memory as
deprecated_xfer_memory hook.
(procfs_xfer_partial): Call procfs_xfer_memory instead
of the deprecated_xfer_memory target hook.
(procfs_xfer_memory): Adjust interface as a to_xfer_partial
helper.
Diffstat (limited to 'opcodes/fr30-opc.h')
0 files changed, 0 insertions, 0 deletions