X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=opcodes%2Fnios2-dis.c;h=257e5bbbaec3eeae6cda3b7a5d4d591af8a82134;hb=a6743a5420aa02a0550b0f7be004f6c06e90ce21;hp=9eedbf9152728b02de8b6d13f06c90b0608ba9b7;hpb=5c1f594e585818719d5c19346e73a1cca3bbce2b;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/nios2-dis.c b/opcodes/nios2-dis.c index 9eedbf9152..257e5bbbae 100644 --- a/opcodes/nios2-dis.c +++ b/opcodes/nios2-dis.c @@ -22,6 +22,7 @@ #include "sysdep.h" #include "disassemble.h" +#include "opintl.h" #include "opcode/nios2.h" #include "libiberty.h" #include @@ -130,9 +131,9 @@ nios2_init_opcode_hash (nios2_disassembler_state *state) (nios2_opcode_hash *) malloc (sizeof (nios2_opcode_hash)); if (new_hash == NULL) { - fprintf (stderr, - "error allocating memory...broken disassembler\n"); - abort (); + /* xgettext:c-format */ + opcodes_error_handler (_("out of memory")); + exit (1); } new_hash->opcode = op; new_hash->next = NULL; @@ -257,8 +258,10 @@ nios2_control_regs (void) static void bad_opcode (const struct nios2_opcode *op) { - fprintf (stderr, "Internal error: broken opcode descriptor for `%s %s'\n", - op->name, op->args); + opcodes_error_handler + /* xgettext:c-format */ + (_("internal error: broken opcode descriptor for `%s %s'"), + op->name, op->args); abort (); }