This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[RFA] sim disassembly patch


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]