http://book.51cto.com/art/200812/103206.htm
段描述符表基址保存在gdtr寄存器中,gdtr寄存器由base32和limit16两个字段组成,limit最大值是0xFFFF,而每个段描述符占8字节,因此段描述符表中最多只能有8192((0xFFFF+1)/8)个段描述符。另一方面段寄存器中保存着段选择子,也因为每个段描述符占8字节,因此只需要前13位保存其在段描述符表中的索引号(前13位+后3位置0也能很快定位其偏移量),后3位则可以用作其他用途(1位TI指示段描述符在GDT还是LDT中,2位CPL指示当前特权级)。
r gdtr查看gdtr中保存的GDT基址。
dg (Display Selector)
The dg command shows the segment descriptor for the specified selector.
Syntax
dg FirstSelector [LastSelector]
Parameters
FirstSelector
Specifies the hexadecimal selector value of the first selector to be displayed.
LastSelector
Specifies the hexadecimal selector value of the last selector to be displayed. If this is omitted, only one selector will be displayed.
更多请参考WinDbg帮助手册,如dg 0 8显示前两个段描述符。