opcodes error messages
[deliverable/binutils-gdb.git] / opcodes / mmix-dis.c
index bf14b77709b44f9b01b1b40d11acf75db83ec100..89a4cd920144b32e3330c1c54a4a86e3592df90d 100644 (file)
 #include "bfd.h"
 #include "opintl.h"
 
-#define BAD_CASE(x)                            \
- do                                            \
-   {                                           \
-     fprintf (stderr,                          \
-             _("Bad case %d (%s) in %s:%d\n"), \
-             x, #x, __FILE__, __LINE__);       \
-     abort ();                                 \
-   }                                           \
+#define BAD_CASE(x)                                            \
+  do                                                           \
+   {                                                           \
+     opcodes_error_handler (_("bad case %d (%s) in %s:%d"),    \
+                           x, #x, __FILE__, __LINE__);         \
+     abort ();                                                 \
+   }                                                           \
  while (0)
 
-#define FATAL_DEBUG                                                    \
- do                                                                    \
-   {                                                                   \
-     fprintf (stderr,                                                  \
-             _("Internal: Non-debugged code (test-case missing): %s:%d"),\
-             __FILE__, __LINE__);                                      \
-     abort ();                                                         \
-   }                                                                   \
+#define FATAL_DEBUG                                            \
+ do                                                            \
+   {                                                           \
+     opcodes_error_handler (_("internal: non-debugged code "   \
+                             "(test-case missing): %s:%d"),    \
+                           __FILE__, __LINE__);                \
+     abort ();                                                 \
+   }                                                           \
  while (0)
 
 #define ROUND_MODE(n)                                  \
This page took 0.025962 seconds and 4 git commands to generate.