+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.
+
2015-11-17 Dominik Vogt <vogt@linux.vnet.ibm.com>
* hppa-tdep.c (hppa_sign_extend, hppa_low_hppa_sign_extend)
status = gdbscm_with_guile (gdbscm_disasm_read_memory_worker, &data);
/* TODO: IWBN to distinguish problems reading target memory versus problems
- with the port (e.g., EOF).
- We return TARGET_XFER_E_IO here as that's what memory_error looks for. */
- return status != NULL ? TARGET_XFER_E_IO : 0;
+ with the port (e.g., EOF). */
+ return status != NULL ? -1 : 0;
}
/* disassemble_info.memory_error_func for gdbscm_print_insn_from_port.
gdbscm_disasm_memory_error (int status, bfd_vma memaddr,
struct disassemble_info *info)
{
- memory_error (status, memaddr);
+ memory_error (TARGET_XFER_E_IO, memaddr);
}
/* disassemble_info.print_address_func for gdbscm_print_insn_from_port.