This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[RFA] sim disassembly patch
- To: gdb-patches at sources dot redhat dot com
- Subject: [RFA] sim disassembly patch
- From: Ben Elliston <bje at redhat dot com>
- Date: Sun, 8 Oct 2000 01:00:32 +1100 (EST)
Here is a patch to send the sim's tracing disassembler to the robustness
gym. Okay to commit?
Ben
2000-10-07 Ben Elliston <bje@redhat.com>
* cgen-trace.c (sim_cgen_disassemble_insn): Handle failure
conditions for sim_core_read_buffer().
RCS file: /cvs/cvsfiles/devo/sim/common/cgen-trace.c,v
retrieving revision 1.21
diff -u -r1.21 cgen-trace.c
--- cgen-trace.c 2000/08/28 18:38:29 1.21
+++ cgen-trace.c 2000/10/07 13:58:53
@@ -381,6 +381,11 @@
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)