This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
x86 segment registers shown as 32-bit
- From: Ruslan Kabatsayev <b7 dot 10110111 at gmail dot com>
- To: gdb at sourceware dot org
- Date: Fri, 4 Aug 2017 23:53:10 +0300
- Subject: x86 segment registers shown as 32-bit
- Authentication-results: sourceware.org; auth=none
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