From 9608051a0eba6303adcadff7d09b70a36067fba3 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Fri, 13 Jan 2017 12:27:39 +0000 Subject: Return -1 on memory error in print_insn_m68k m68k-dis.c:print_insn_m68k doesn't return -1 on memory error, but GDB expects it returning -1 on memory error. opcodes: 2017-01-13 Yao Qi * m68k-dis.c (match_insn_m68k): Extend comments. Return -1 if FETCH_DATA returns 0. (m68k_scan_mask): Likewise. (print_insn_m68k): Update code to handle -1 return value. --- opcodes/ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'opcodes/ChangeLog') diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 0adbdf1..d4f35bd 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,12 @@ 2017-01-13 Yao Qi + * m68k-dis.c (match_insn_m68k): Extend comments. Return -1 + if FETCH_DATA returns 0. + (m68k_scan_mask): Likewise. + (print_insn_m68k): Update code to handle -1 return value. + +2017-01-13 Yao Qi + * m68k-dis.c (enum print_insn_arg_error): New. (NEXTBYTE): Replace -3 with PRINT_INSN_ARG_MEMORY_ERROR. -- cgit v1.1