gdb/testsuite: better handle failures in simavr board, reap simavr process
[deliverable/binutils-gdb.git] / opcodes / disassemble.c
index d49a2b857df063b1100f1989ae85ebc57b994afa..299c23db137e1c73cbf09ad456dcac4f21c29fd7 100644 (file)
@@ -21,7 +21,7 @@
 #include "sysdep.h"
 #include "disassemble.h"
 #include "safe-ctype.h"
-#include <assert.h>
+#include "opintl.h"
 
 #ifdef ARCH_all
 #define ARCH_aarch64
@@ -660,6 +660,7 @@ disassemble_init_for_target (struct disassemble_info * info)
 #endif
 #ifdef ARCH_bpf
     case bfd_arch_bpf:
+      info->endian_code = BFD_ENDIAN_LITTLE;
       if (!info->private_data)
        {
          info->private_data = cgen_bitset_create (ISA_EBPFMAX);
@@ -832,3 +833,11 @@ disassembler_options_cmp (const char *s1, const char *s2)
 
   return c1 - c2;
 }
+
+void
+opcodes_assert (const char *file, int line)
+{
+  opcodes_error_handler (_("assertion fail %s:%d"), file, line);
+  opcodes_error_handler (_("Please report this bug"));
+  abort ();
+}
This page took 0.02934 seconds and 4 git commands to generate.