aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2023-12-22 09:33:12 +0100
committerJan Beulich <jbeulich@suse.com>2023-12-22 09:33:12 +0100
commitce7056886a6e52a4fc91b5e3b28da2c0735d0b19 (patch)
tree95a3664b2a1c897022e5ad788ccb234ec5f24679 /gdb/python
parentc3d507aba3ec2c9b3f9aa105a01cf80ecc0b8c9b (diff)
downloadbinutils-ce7056886a6e52a4fc91b5e3b28da2c0735d0b19.zip
binutils-ce7056886a6e52a4fc91b5e3b28da2c0735d0b19.tar.gz
binutils-ce7056886a6e52a4fc91b5e3b28da2c0735d0b19.tar.bz2
x86: properly respect rex/{rex}
This addresses two issues: For one, a user specified "rex" did not cause the diagnostic to trigger when there was no other need for a REX prefix; instead, another than the specified insn+operands was encoded. And then (which is what this started from) .insn didn't respect {rex} (and was otherwise similarly flawed as ordinary insns). The latter requires splitting out code from md_assemble(), for it to become re-usable. Besides the addition to address the first issue, that code then also needs generalizing to account for immediate operands, as with .insn we can't make assumptions anymore on all respective templates having at most two operands (we still can build upon there being at most two non-immediate operands, though). While moving the code also simplify the first if(), by folding redundant checks. In the new testcase also test a few more things which afaics weren't tested till now.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions