guile disassembly hardcode TARGET_XFER_E_IO
authorPedro Alves <palves@redhat.com>
Tue, 17 Nov 2015 13:31:28 +0000 (13:31 +0000)
committerPedro Alves <palves@redhat.com>
Tue, 17 Nov 2015 13:31:28 +0000 (13:31 +0000)
commit9a4073e20b2f1da74cb3b46707e4f6fc4e700950
tree7456f166bb20623a3c380f33741bb87d0b0a24d7
parenteee926f28e8745dcd03adcb1113f3e4a7b79b1e5
guile disassembly hardcode TARGET_XFER_E_IO

Instead of adding a cast at the memory_error call, as needed for C++,
and have the reader understand the indirection, make it simple and
hardcode the generic memory error at the memory_error call site.

gdb/ChangeLog:
2015-11-17  Pedro Alves  <palves@redhat.com>

* guile/scm-disasm.c (gdbscm_disasm_read_memory): Return -1 on
error instead of TARGET_XFER_E_IO.
(gdbscm_disasm_memory_error): Always pass TARGET_XFER_E_IO to
memory_error.
gdb/ChangeLog
gdb/guile/scm-disasm.c
This page took 0.026635 seconds and 4 git commands to generate.