d, dw, dd, dp, dpw, and dpd subcommands

The d (display bytes), dw (display words), and dd (display double words), subcommands dump memory areas starting at a specified effective address. Access is done in real mode. The dp (display bytes), dpw (display words), and dpd (display double words) subcommands dump memory areas starting at a specified real address.

Format

d symbol | EffectiveAddress [count]

dw symbol | EffectiveAddress [count]

dd symbol | EffectiveAddress [count]

dp symbol | PhysicalAddress [count]

dpw symbol | PhysicalAddress [count]

dpd symbol | PhysicalAddress [count]

Parameters

Item Description
EffectiveAddress Specifies the virtual (effective) address of the area to be dumped when the d, dw, or dd subcommands are used. Symbols, hexadecimal values, or hexadecimal expressions can be used in specification of the address.
PhysicalAddress Specifies the physical address of the area to be dumped when the dp, dpw or dpd subcommands are used. Symbols, hexadecimal values, or hexadecimal expressions can be used in specification of the address.
count Specifies the number of bytes, words, or double words to display. This is a hexadecimal value. The number of bytes are displayed if the d subcommand or the dp subcommand are used. The number of words are displayed if the dw or dpw subcommand are used. The number of double words is displayed if the dd subcommand or the dpd subcommand are used. If no count is specified, 16 bytes of data are displayed.

Any of the display subcommands can be continued from the last address displayed by using the Enter key.

Other

ddump

Examples

The following is an example of how to use the d, dw, dd, dp, dpw, and dpd subcommands:

KDB(0)> d utsname //display data at utsname
utsname+000000: 4149 5800  0000 0000  0000 0000  0000 0000   AIX.............
KDB(0)> d utsname 8 //display 8 bytes of data at utsname
utsname+000000: 4149 5800  0000 0000                         AIX.....
KDB(0)>   //'enter key' to display the next 8 bytes of data
utsname+000008: 0000 0000  0000 0000                         ........
KDB(0)> dw utsname 8 //display 8 words of data at utsname
utsname+000000: 41495800 00000000 00000000 00000000  AIX.............
utsname+000010: 00000000 00000000 00000000 00000000  ................
KDB(0)> dd utsname 8 //display 8 double-words of data at utsname
utsname+000000: 4149580000000000 0000000000000000  AIX.............
utsname+000010: 0000000000000000 0000000000000000  ................
utsname+000020: 3030303030303030 4130303000000000  00000000A000....
utsname+000030: 0000000000000000 0000000000000000  ................
KDB(0)> tr utsname //find physical address of utsname
Physical Address = 00000000003D2860
KDB(0)> dp 3D2860 //display data using physical address
003D2860: 4149 5800  0000 0000  0000 0000  0000 0000      AIX.............
KDB(0)> dpw 3D2860 //display data as words using physical address
003D2860: 41495800 00000000 00000000 00000000     AIX.............
KDB(0)> dpd 3D2860 //display data as double-words using physical address
003D2860: 4149580000000000 0000000000000000     AIX.............
KDB(0)>