diff options
author | Jan Beulich <jbeulich@suse.com> | 2020-07-14 10:43:38 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2020-07-14 10:43:38 +0200 |
commit | bfbd943845684ac374c41797154d2c53cc338145 (patch) | |
tree | a2e8a3bcea766e00b8573cc9beaee70d660bd8cb /opcodes | |
parent | 78467458dd39623607605180bce0a58728110f34 (diff) | |
download | fsf-binutils-gdb-bfbd943845684ac374c41797154d2c53cc338145.zip fsf-binutils-gdb-bfbd943845684ac374c41797154d2c53cc338145.tar.gz fsf-binutils-gdb-bfbd943845684ac374c41797154d2c53cc338145.tar.bz2 |
x86/Intel: debug registers are named DRn
%db<n> is an AT&T invention; the Intel documentation and MASM have only
ever specified DRn (in line with CRn and TRn). (In principle gas also
shouldn't accept the names in Intel mode, but at least for now I've kept
things as they are. Perhaps as a first step this should just be warned
about.)
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 4 | ||||
-rw-r--r-- | opcodes/i386-dis.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 4cc5087..3a38bb2 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,9 @@ 2020-07-14 Jan Beulich <jbeulich@suse.com> + * i386-dis.c (OP_D): Print dr<N> instead of db<N> in Intel mode. + +2020-07-14 Jan Beulich <jbeulich@suse.com> + * i386-dis.c (OP_R, Rm): Delete. (MOD_0F24, MOD_0F26): Rename to ... (X86_64_0F24, X86_64_0F26): ... respectively. diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index 9c45da2..a6cc013 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -12787,7 +12787,7 @@ OP_D (int dummy ATTRIBUTE_UNUSED, int sizeflag ATTRIBUTE_UNUSED) else add = 0; if (intel_syntax) - sprintf (scratchbuf, "db%d", modrm.reg + add); + sprintf (scratchbuf, "dr%d", modrm.reg + add); else sprintf (scratchbuf, "%%db%d", modrm.reg + add); oappend (scratchbuf); |