.dg [object]
The .dg command displays a list of the global memory objects in the global heap.
object
Specifies the first object to be listed. The object parameter can be a handle, a selector, or (in 386 enhanced mode) a heap address.
The list has the following form:
address: size segment-type owner [handle flags chain]
address
Specifies the selector of the memory in standard mode. In 386 enhanced mode, the address field specifies physical and heap addresses.
size
Specifies the size, in paragraphs (multiples of 16 bytes), of the object in standard mode. In 386 enhanced mode, the size field specifies the size of the object, in bytes.
segment-type
Specifies the type of object. The type can be any one of the following:
Segment type | Meaning |
CODE | Segment contains application code. |
DATA | Segment contains application data and possible stack and local heap data. |
FREE | Segment belongs to pool of free memory objects ready for allocation by an application. |
PRIV | Segment contains private data. |
SENTINAL | Segment marks the beginning or end of the global heap. |
owner
Specifies the module name of the application or library that allocated the memory object. The acronym PDB is used for memory objects that represent process descriptor blocks. These blocks contain execution information about applications.
handle
Specifies the handle of the global memory object. If 80386 Debugger displays no handle, the segment is fixed.
flags
Specifies either of the following:
Flag | Meaning |
D | The segment is movable and discardable. |
L | The segment is locked. If the segment is locked, the lock count appears to the right of the flag. |
If 80386 Debugger displays a handle but no flag, the segment is movable but not discardable.
chain
Specifies the previous and next addresses in the list of least recently used (LRU) objects. Addresses are displayed only if the segment is movable and discardable (specified by the D flag).