x86: change fetch error handling in top-level function
authorJan Beulich <jbeulich@suse.com>
Fri, 21 Apr 2023 10:07:53 +0000 (12:07 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 21 Apr 2023 10:07:53 +0000 (12:07 +0200)
commit06173b5d0926a76c9d1af832d76636f80fc04413
tree08ea278edb49bfa0e12d0526adad83166d74a85b
parent4bcbe86c25a61afd70106af466e73e4462c25d0b
x86: change fetch error handling in top-level function

... and its direct helper get_sib(). Using setjmp()/longjmp() for fetch
error handling is problematic, as per
https://sourceware.org/pipermail/binutils/2023-March/126687.html. Start
using more conventional error handling instead.

Also introduce a fetch_modrm() helper, for subsequent re-use.
opcodes/i386-dis.c