X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=opcodes%2Fdisassemble.h;h=89db88640572c20e48d89a450d546973f3623f8b;hb=efb763a5ea351f9d865cbe491909f03472ebf2d6;hp=945508519a849658601e2d3c026f79dad3bb03b8;hpb=5b660084e26050d2e7f1fda06daec1e83311c188;p=deliverable%2Fbinutils-gdb.git diff --git a/opcodes/disassemble.h b/opcodes/disassemble.h index 945508519a..89db886405 100644 --- a/opcodes/disassemble.h +++ b/opcodes/disassemble.h @@ -1,6 +1,6 @@ /* Header only used inside opcodes library for disassemble. - Copyright (C) 2017-2019 Free Software Foundation, Inc. + Copyright (C) 2017-2020 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -103,4 +103,10 @@ extern int print_insn_z8002 (bfd_vma, disassemble_info *); extern disassembler_ftype csky_get_disassembler (bfd *); extern disassembler_ftype rl78_get_disassembler (bfd *); + +extern void ATTRIBUTE_NORETURN opcodes_assert (const char *, int); + +#define OPCODES_ASSERT(x) \ + do { if (!(x)) opcodes_assert (__FILE__, __LINE__); } while (0) + #endif /* DISASSEMBLE_H */