[RFC] libopcodes based disassembler syntax highlighting

Jan Beulich jbeulich@suse.com
Mon Dec 6 15:13:30 GMT 2021


On 06.12.2021 15:28, Andrew Burgess wrote:
> * Jan Beulich via Binutils <binutils@sourceware.org> [2021-12-06 10:02:21 +0100]:
>> Also, as to the distinction between immediate and symbol: How would
>> an immediate referencing a symbol count?
> 
> I think this was covered above, numbers would be immediates, names
> would be symbols.

Hmm, "immediate" has a specific meaning for operand types, not just
in x86, but these it's quite prominent because and immediate can be
both a number or the address of a symbol:

    mov   %eax, $0x12345678
    mov   %eax, $foo

Using the term "immediate" for just the first of these cases may end
in confusion.

Also, in e.g. "foo+8" there's no immediate, but a number.

Jan



More information about the Gdb-patches mailing list