watch Command for the LLDB Kernel Debug
Program . . . . . . . . . . . . . . 376
xlate Command for the LLDB Kernel Debug
Program . . . . . . . . . . . . . . 376
Maps and Listings as Tools for the LLDB Kernel
Debug Program . . . . . . . . . . . 377
Compiler Listing . . . . . . . . . . . 377
Map File . . . . . . . . . . . . . . 378
Using the LLDB Kernel Debug Program . . . 381
Setting Breakpoints . . . . . . . . . . 381
Viewing and Modifying Global Data . . . . 384
Displaying Registers on a Micro Channel
Adapter . . . . . . . . . . . . . . 386
Stack Trace . . . . . . . . . . . . . 387
Error Messages for the LLDB Kernel Debug
Program . . . . . . . . . . . . . . 388
KDB Kernel Debugger and Command . . . . . 390
KDB Kernel Debugger and kdb Command . . 390
The kdb Command . . . . . . . . . . 390
KDB Kernel Debugger . . . . . . . . . 391
Loading and Starting the KDB Kernel Debugger 391
Using a Terminal with the KDB Kernel
Debugger. . . . . . . . . . . . . . 392
Entering the KDB Kernel Debugger . . . . . 392
Debugging Multiprocessor Systems . . . . . 393
Kernel Debug Program Concepts . . . . . . 393
Subcommands for the KDB Kernel Debugger and
kdb Command . . . . . . . . . . . . . 394
Introduction to Subcommands. . . . . . . 394
KDB Kernel Debug Program Subcommands
grouped in Alphabetical Order . . . . . . 396
KDB Kernel Debug Subcommands grouped by
Task Category . . . . . . . . . . . . 402
Basic Subcommands for the KDB Kernel Debugger
and kdb Command . . . . . . . . . . . 410
h Subcommand. . . . . . . . . . . . 410
his Subcommand . . . . . . . . . . . 411
e Subcommand . . . . . . . . . . . . 412
set Subcommand . . . . . . . . . . . 412
f Subcommand . . . . . . . . . . . . 414
ctx Subcommand . . . . . . . . . . . 417
cdt Subcommand . . . . . . . . . . . 419
Trace Subcommands for the KDB Kernel Debugger
and kdb Command . . . . . . . . . . . 420
bt Subcommand . . . . . . . . . . . 420
ct and cat Subcommands . . . . . . . . 420
bt script Subcommand . . . . . . . . . 421
bt [ cond ] Subcommand . . . . . . . . 421
Breakpoints/Steps Subcommands for the KDB
Kernel Debugger and kdb Command . . . . . 421
b Subcommand. . . . . . . . . . . . 421
lb Subcommand . . . . . . . . . . . 422
c, lc, and ca Subcommands . . . . . . . . 423
r and gt Subcommands . . . . . . . . . 424
n s, S, and B Subcommands . . . . . . . 425
Dumps/Display/Decode Subcommands for the
KDB Kernel Debugger and kdb Command . . . 426
d, dw, dd, dp, dpw, dpd Subcommands . . . 426
dc and dpc Subcommands . . . . . . . . 427
dr Subcommand . . . . . . . . . . . 428
ddvb, ddvh, ddvw, ddvd, ddpd, ddph, and
ddpw Subcommands . . . . . . . . . . 430
find and findp Subcommands . . . . . . . 430
ext and extp Subcommands . . . . . . . 431
Modify Memory Subcommands for the KDB
Kernel Debugger and kdb Command . . . . . 432
m, mw, md, mp, mpw, and mpd Subcommands 432
mr Subcommand . . . . . . . . . . . 434
mdvb, mdvh, mdvw, mdvd, mdpb, mdph,
mdpw, mdpd Subcommands . . . . . . . 434
Namelist/Symbol Subcommands for the KDB
Kernel Debugger and kdb Command . . . . . 436
nm and ts Subcommands . . . . . . . . 436
ns Subcommand . . . . . . . . . . . 436
Watch Break Points Subcommands for the KDB
Kernel Debugger and kdb Command . . . . . 437
wr, ww, wrw, cw, lwr, lww, lwrw, and lcw
Subcommands . . . . . . . . . . . . 437
Miscellaneous Subcommands for the KDB Kernel
Debugger and kdb Command . . . . . . . . 438
time and debug Subcommands . . . . . . 438
Conditional Subcommands for the KDB Kernel
Debugger and kdb Command . . . . . . . . 439
test Subcommand . . . . . . . . . . . 439
Calculator Converter Subcommands for the KDB
Kernel Debugger and kdb Command . . . . . 439
hcal and dcal Subcommands . . . . . . . 439
Machine Status Subcommands for the KDB Kernel
Debugger and kdb Command . . . . . . . . 439
status Subcommand . . . . . . . . . . 439
switch Subcommand . . . . . . . . . . 441
Kernel Extension Loader Subcommands for the
KDB Kernel Debugger and kdb Command . . . 442
lke, stbl, and rmst Subcommands. . . . . . 442
export table Subcommand . . . . . . . . 445
Address Translation Subcommands for the KDB
Kernel Debugger and kdb Command . . . . . 446
tr and tv Subcommands . . . . . . . . . 446
Process Subcommands for the KDB Kernel
Debugger and kdb Command . . . . . . . . 447
ppda Subcommand . . . . . . . . . . 447
intr Subcommand . . . . . . . . . . . 448
mst Subcommand . . . . . . . . . . . 449
proc Subcommand . . . . . . . . . . 450
thread Subcommand . . . . . . . . . . 453
ttid and tpid Subcommands . . . . . . . 456
runq, lockq, and sleepq Subcommands . . . . 457
user Subcommand. . . . . . . . . . . 457
LVM Subcommands for the KDB Kernel Debugger
and kdb Command . . . . . . . . . . . 459
pbuf Subcommand . . . . . . . . . . 459
volgrp Subcommand . . . . . . . . . . 459
pvol Subcommand . . . . . . . . . . 461
lvol Subcommand . . . . . . . . . . . 461
SCSI Subcommands for the KDB Kernel Debugger
and kdb Command . . . . . . . . . . . 462
ascsi Subcommand . . . . . . . . . . 462
vscsi Subcommand . . . . . . . . . . 464
scdisk Subcommand . . . . . . . . . . 468
Memory Allocator Subcommands for the KDB
Kernel Debugger and kdb Command . . . . . 471
Contents xi