x86 segment registers shown as 32-bit
Ruslan Kabatsayev
b7.10110111@gmail.com
Fri Aug 4 20:53:00 GMT 2017
Hello,
Is there any good reason why x86/x86_64 segment registers are marked
as 32-bit? Namely, gdb/features/i386/{32,64}bit-core.xml have
bitsize="32" and type="int32" for cs, ss, ds, es, fs, gs registers. As
a result, we have commands like "print sizeof($cs)" say "$1 = 4"
instead of more sensible "$1 = 2".
Should this be fixed, or does it serve any purpose?
Regards,
Ruslan
More information about the Gdb
mailing list