mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-27 17:40:49 +00:00
* usability improvements
2000-10-08 Ben Elliston <bje@redhat.com> * cgen-utils.c (cgen_rtx_error): New function. 2000-10-07 Ben Elliston <bje@redhat.com> * cgen-trace.c (sim_cgen_disassemble_insn): Handle failure conditions for sim_core_read_buffer().
This commit is contained in:
@@ -381,6 +381,11 @@ sim_cgen_disassemble_insn (SIM_CPU *cpu, const CGEN_INSN *insn,
|
||||
length = sim_core_read_buffer (sd, cpu, read_map, &insn_buf, pc,
|
||||
insn_length);
|
||||
|
||||
if (length != insn_length)
|
||||
{
|
||||
sim_io_error (sd, "unable to read address %x", pc);
|
||||
}
|
||||
|
||||
/* If the entire insn will fit into an integer, then do it. Otherwise, just
|
||||
use the bits of the base_insn. */
|
||||
if (insn_bit_length <= 32)
|
||||
|
||||
Reference in New Issue
Block a user