dg

dg[a] [range]

The dg command displays the specified range of entries in the global descriptor table (GDT).

Parameters

range

Specifies the range of entries in the GDT. If you omit range, the debugger displays the entire contents of the GDT.

a

Causes all entries in the table to be displayed, not just the valid entries. By default, only the valid GDT entries are displayed. If the command is passed a local descriptor table (LDT) selector, it displays the appropriate LDT entry.

Example

The following example displays only the valid entries from 0h to 40h in the GDT:

dg 0 40

The resulting display is similar to the following:

0008  Data Seg  Base=01D700 Limit=3677 DPL=0 Present ReadWriteAccessed
0010  TSS Desc  Base=007688 Limit=002B DPL=0 Present Busy
0018  Data Seg  Base=020D7A Limit=03FF DPL=0 Present ReadWrite
0020  Data Seg  Base=000000 Limit=03FF DPL=0 Present ReadWrite
0028  LDT Desc  Base=000000 Limit=0000 DPL=0 Present
0030  Data Seg  Base=000000 Limit=0000 DPL=0 Present ReadWrite
0040  Data Seg  Base=000400 Limit=03BF DPL=3 Present ReadWrite