opcodes: Make i386-dis.c thread-safe
authorVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Wed, 5 Jan 2022 07:07:26 +0000 (23:07 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 5 Jan 2022 20:12:40 +0000 (12:12 -0800)
commit39fb369834a39e80d9bee9c55f029c543a7d797c
tree2bd891710aa0768eb920060796d304e945d372ec
parent8acecab0b0e11e1e0763302daa9766f85084737e
opcodes: Make i386-dis.c thread-safe

Improve thread safety in print_insn_i386_att, print_insn_i386_intel and
print_insn_i386 by removing the use of static variables.

Tested on x86_64-pc-linux-gnu.

2022-01-04 Vladimir Mezentsev  <vladimir.mezentsev@oracle.com>

* i386-dis.c: Make print_insn_i386_att, print_insn_i386_intel
and print_insn_i386 thread-safe
opcodes/i386-dis.c