[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Kernel Extensions and Device Support Programming Concepts

Conditional Subcommands for the KDB Kernel Debugger and kdb Command


test Subcommand

The test subcommand may be used to break at a specified address when a condition becomes true.

Example

   KDB(0)> bt open "[ @sysinfo >= 3d ]" stop on open() if condition true
   KDB(0)> e exit debugger
   ...
   Enter kdb [ @sysinfo >= 3d ]
   KDB(1)> bt display current active trace break points
   0:      .open+000000 (sid:00000000)  trace {hit: 1} {script: [ @sysinfo >= 3d ]}
   KDB(1)> dw sysinfo 1 print sysinfo value
   sysinfo+000000: 0000004A

[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]