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

Namelist/Symbol Subcommands for the KDB Kernel Debugger and kdb Command


nm and ts Subcommands

The following subcommands may be used to swap from symbol to hexadecimal values.

Example

   KDB(0)> nm __ublock print symbol value
   Symbol Address : 2FF3B400
   KDB(0)> ts E3000000 print symbol name
   proc+000000

ns Subcommand

The ns toggle may be used to disable symbol printing.

Example

   KDB(0)> set 2 do not print context
   mst_wanted is false
   KDB(0)> f print stack frame
   thread+00D080 STACK:
   [000095A4].simple_lock+0000A4 ()
   [0007F4A0]v_prefreescb+000038 (??, ??)
   [00017AC4]isync_vcs3+000004 (??, ??)
   ____ Exception (2FF40000) ____
   [00009414].unlock_enable+000110 ()
   [00009410].unlock_enable+00010C ()
   [0000CDD0]as_det+0000A8 (??, ??)
   [001B33F8]shm_freespace+000080 (??, ??)
   [001F6A04]rmmapseg+0000D0 (??)
   [001E41DC]vm_map_entry_delete+00023C (??, ??)
   [001E4828]vm_map_delete+000158 (??, ??, ??)
   [001E5034]vm_map_remove+000064 (??, ??, ??)
   [001E6514]munmap+0000C0 (??, ??)
   [000036FC].sys_call+000000 ()
   KDB(0)> ns enable no symbol printing
   Symbolic name translation off
   KDB(0)> f print stack frame
   E600D080 STACK:
   000095A4 ()
   0007F4A0 (??, ??)
   00017AC4 (??, ??)
   ____ Exception (2FF40000) ____
   00009414 ()
   00009410 ()
   0000CDD0 (??, ??)
   001B33F8 (??, ??)
   001F6A04 (??)
   001E41DC (??, ??)
   001E4828 (??, ??, ??)
   001E5034 (??, ??, ??)
   001E6514 (??, ??)
   000036FC ()
   KDB(0)> ns disable no symbol printing
   Symbolic name translation on
   KDB(0)>

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