Fix buglet noticed while looking at PR 1298.
* m68k-dis.c (match_insn_m68k): Restore fprintf_func before printing error message.
This commit is contained in:
parent
a2a8ff2ba0
commit
f095b97b59
@ -1,3 +1,8 @@
|
|||||||
|
2006-04-28 James E Wilson <wilson@specifix.com>
|
||||||
|
|
||||||
|
* m68k-dis.c (match_insn_m68k): Restore fprintf_func before printing
|
||||||
|
error message.
|
||||||
|
|
||||||
2006-04-28 Thiemo Seufer <ths@mips.com>
|
2006-04-28 Thiemo Seufer <ths@mips.com>
|
||||||
David Ung <davidu@mips.com>
|
David Ung <davidu@mips.com>
|
||||||
Nigel Stephens <nigel@mips.com>
|
Nigel Stephens <nigel@mips.com>
|
||||||
|
@ -1308,12 +1308,14 @@ match_insn_m68k (bfd_vma memaddr,
|
|||||||
}
|
}
|
||||||
else
|
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,
|
info->fprintf_func (info->stream,
|
||||||
/* xgettext:c-format */
|
/* xgettext:c-format */
|
||||||
_("<internal error in opcode table: %s %s>\n"),
|
_("<internal error in opcode table: %s %s>\n"),
|
||||||
best->name, best->args);
|
best->name, best->args);
|
||||||
info->fprintf_func = save_printer;
|
|
||||||
info->print_address_func = save_print_address;
|
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user