.dg (Display Global Memory)
.dg [object]
The .dg command displays a list of the global memory objects in the global heap. The command displays information in much the same way as the HEAPWALK application.
-
object
-
Specifies the first object to be listed. The object parameter can be a handle, a selector, or a heap address.
The list has the following form:
address: size segment-type owner [handle flags chain]
-
address
-
Specifies physical and heap addresses.
-
size
-
Specifies the size of the object, in bytes.
-
segment-type
-
Specifies the type of object. The type can be any one of the following:
Type |
Description |
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 the debugger displays no handle, the segment is fixed.
-
flags
-
Specifies either of the following:
Flag |
Description |
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 the 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).