Prevent objdump from aborting when asked to disassemble an unknown type of ARC binary...
authorPhillipe Antoine <p.antoine@catenacyber.fr>
Wed, 7 Aug 2019 16:22:29 +0000 (17:22 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 7 Aug 2019 16:22:29 +0000 (17:22 +0100)
commitd88bdcb4a52bc041ed9b607dda22f478ec61a67b
tree3cc83e5666f0e4b2627053d9d695ec255c6eeabb
parent7c1c1904bedb8f873731651b420a23f573785728
Prevent objdump from aborting when asked to disassemble an unknown type of ARC binary file.

PR 24854
* arc-dis.c (arc_insn_length): Return 0 rather than aborting when
encountering an unknown machine type.
(print_insn_arc): Handle arc_insn_length returning 0.  In error
cases return -1 rather than calling abort.
opcodes/ChangeLog
opcodes/arc-dis.c