X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fdisassemble.c;h=25816efb56cc823f2a10c70daa5bc48ada1b6209;hb=50d036364fb2a71b3ac9a0b0cdbe58296832a1b2;hp=cc1de6986e2d3d1d06047aa302fa184d2e469914;hpb=5b660084e26050d2e7f1fda06daec1e83311c188;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/disassemble.c b/opcodes/disassemble.c index cc1de6986e..25816efb56 100644 --- a/opcodes/disassemble.c +++ b/opcodes/disassemble.c @@ -1,5 +1,5 @@ /* Select disassembly routine for specified architecture. - Copyright (C) 1994-2019 Free Software Foundation, Inc. + Copyright (C) 1994-2020 Free Software Foundation, Inc. This file is part of the GNU opcodes library. @@ -21,7 +21,7 @@ #include "sysdep.h" #include "disassemble.h" #include "safe-ctype.h" -#include +#include "opintl.h" #ifdef ARCH_all #define ARCH_aarch64 @@ -832,3 +832,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 (); +}