From: wilson Date: Sat, 29 Apr 2006 03:11:31 +0000 (+0000) Subject: Fix buglet noticed while looking at PR 1298. X-Git-Tag: pre-ptymaster-archetype~426 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=03c13eb38884f97e921247bcf209f1cc4b6ed3d1;p=pf3gnuchains%2Fpf3gnuchains4x.git Fix buglet noticed while looking at PR 1298. * m68k-dis.c (match_insn_m68k): Restore fprintf_func before printing error message. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index e786c1cc60..84ecdcfcbd 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2006-04-28 James E Wilson + + * m68k-dis.c (match_insn_m68k): Restore fprintf_func before printing + error message. + 2006-04-28 Thiemo Seufer David Ung Nigel Stephens diff --git a/opcodes/m68k-dis.c b/opcodes/m68k-dis.c index 8fc7015266..309496381d 100644 --- a/opcodes/m68k-dis.c +++ b/opcodes/m68k-dis.c @@ -1308,12 +1308,14 @@ match_insn_m68k (bfd_vma memaddr, } else { + /* We must restore the print functions before trying to print the + error message. */ + info->fprintf_func = save_printer; + info->print_address_func = save_print_address; info->fprintf_func (info->stream, /* xgettext:c-format */ _("\n"), best->name, best->args); - info->fprintf_func = save_printer; - info->print_address_func = save_print_address; return 2; } }