x86 segment registers shown as 32-bit

Ruslan Kabatsayev <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <CAHEcG97RW8s_EvroTaia3u_rXRiCXftknREvUYhrkUk5_cjK-w@mail.gmail.com>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.