This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

x86 segment registers shown as 32-bit


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]