diff options
author | Jan Beulich <jbeulich@suse.com> | 2020-06-08 08:37:47 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2020-06-08 08:37:47 +0200 |
commit | 8a6fb3f9bb5105e58f6800de9089a4bdb0cc0cd6 (patch) | |
tree | b4be5b526c1cb1048b525fa880b8315b643f34a1 /README | |
parent | 334a017304f03fdc77a2d8893396ed9bfa40382f (diff) | |
download | gdb-8a6fb3f9bb5105e58f6800de9089a4bdb0cc0cd6.zip gdb-8a6fb3f9bb5105e58f6800de9089a4bdb0cc0cd6.tar.gz gdb-8a6fb3f9bb5105e58f6800de9089a4bdb0cc0cd6.tar.bz2 |
x86: restrict use of register aliases
Register aliases (created e.g. via .set) check their target register at
the time of creation of the alias. While this makes sense, it's not
enough: The underlying register must also be "visible" at the time of
use. Wrong use of such aliases would lead to internal errors in e.g.
add_prefix() or build_modrm_byte().
Split the checking part of parse_real_register() into a new helper
function and use it also from the latter part of parse_register() (at
the same time replacing a minor open coded part of it).
Since parse_register() returning NULL already has a meaning, a fake new
"bad register" indicator gets added, which all callers need to check
for.
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions