Yao Qi
d95014a2ef
Return -1 on memory error in print_insn_msp430
...
Disassemblers in opcodes return -1 on memory error, but msp430 doesn't
follow this convention. If I change GDB not to throw exception in
disassemble_info.memory_error_func and rely on the return value of
disassembler, I'll get the following output.
(gdb) disassemble 0x0,+8
Dump of assembler code from 0x0 to 0x8:
0x00000000: .word 0xffff; ????
0x00000002: .word 0xffff; ????
0x00000004: .word 0xffff; ????
0x00000006: .word 0xffff; ????
End of assembler dump.
This patch teaches print_insn_msp430 and its callees to return -1
on memory error.
opcodes:
2017-01-12 Yao Qi <yao.qi@linaro.org>
* msp430-dis.c (msp430_singleoperand): Return -1 if
msp430dis_opcode_signed returns false.
(msp430_doubleoperand): Likewise.
(msp430_branchinstr): Return -1 if
msp430dis_opcode_unsigned returns false.
(msp430x_calla_instr): Likewise.
(print_insn_msp430): Likewise.
2017-01-12 09:40:41 +00:00
..
2017-01-03 15:51:11 +00:00
2010-12-09 09:03:18 +00:00
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-04 12:31:08 +00:00
2016-12-28 22:12:11 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2016-11-04 22:46:51 +00:00
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-12 09:40:41 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2015-08-12 04:45:07 -07:00
2015-08-12 04:45:07 -07:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2013-01-02 13:13:36 +00:00
2014-01-08 05:32:12 -08:00
2015-01-02 00:53:45 +10:30
2016-01-01 22:59:17 +10:30
2017-01-02 13:55:05 +10:30
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2016-12-28 22:12:11 +10:30
2017-01-03 15:51:11 +00:00
2017-01-03 15:51:11 +00:00
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2009-06-04 06:57:56 +00:00
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-05 09:11:47 +00:00
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2016-11-09 14:00:18 -08:00
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2012-09-04 13:52:06 +00:00
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2013-05-17 12:57:16 +00:00
2013-05-17 12:57:16 +00:00
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-12 09:40:41 +00:00
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-03 16:02:36 +00:00
2017-01-03 17:42:01 +00:00
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 23:59:24 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30
2017-01-02 14:08:56 +10:30