KDB Kernel Debugger and Kdb Command
Total Page:16
File Type:pdf, Size:1020Kb
AIX Version 7.2 KDB kernel debugger and kdb command IBM Note Before using this information and the product it supports, read the information in “Notices” on page 323. This edition applies to AIX Version 7.2 and to all subsequent releases and modifications until otherwise indicated in new editions. © Copyright International Business Machines Corporation 2015. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents About this document.............................................................................................ix Highlighting..................................................................................................................................................ix Case-sensitivity in AIX................................................................................................................................ ix ISO 9000......................................................................................................................................................ix KDB kernel debugger and kdb command................................................................ 1 KDB kernel debugger................................................................................................................................... 1 Invoking the KDB kernel debugger........................................................................................................ 2 The kdb command..................................................................................................................................3 The debugger prompt.................................................................................................................................. 5 Online help..............................................................................................................................................5 Registers................................................................................................................................................. 6 Expressions.............................................................................................................................................8 User-defined variables........................................................................................................................... 9 Command line editing.............................................................................................................................9 Multiprocessor systems....................................................................................................................... 10 Viewing and modifying global data........................................................................................................... 10 Method 1: Using the symbol name...................................................................................................... 10 Method 2: Using the TOC and map file................................................................................................ 11 Method 3: Using the map file............................................................................................................... 13 Viewing stack traces.................................................................................................................................. 14 Stack frame format...............................................................................................................................14 Verbose stack output........................................................................................................................... 16 Setting breakpoints....................................................................................................................................17 Method 1: Using the lke subcommand................................................................................................ 17 Method 2: Using the nm subcommand................................................................................................18 Method 3: Using the kmid pointer....................................................................................................... 19 Method 4: Using the devsw subcommand.......................................................................................... 20 Subcommand lists..................................................................................................................................... 21 Alphabetic list.......................................................................................................................................21 Task category list..................................................................................................................................34 End user subcommands............................................................................................................................ 36 h subcommand.....................................................................................................................................36 set subcommand..................................................................................................................................37 dbgopt subcommand........................................................................................................................... 40 varset subcommand.............................................................................................................................41 varlist subcommand.............................................................................................................................42 varrm subcommand............................................................................................................................. 42 his subcommand.................................................................................................................................. 43 debug subcommand.............................................................................................................................43 ! subcommand......................................................................................................................................44 Leaving kdb subcommands....................................................................................................................... 45 e subcommand.....................................................................................................................................45 reboot subcommand............................................................................................................................ 46 halt subcommand.................................................................................................................................47 Changing context subcommands.............................................................................................................. 47 sw subcommand.................................................................................................................................. 47 cpu subcommand.................................................................................................................................49 ctx subcommand..................................................................................................................................50 runcpu subcommand........................................................................................................................... 52 iii Calculator and converter subcommands.................................................................................................. 53 hcal and dcal subcommands............................................................................................................... 53 conv subcommand............................................................................................................................... 54 CPU start and stop subcommands............................................................................................................ 55 start and stop subcommands.............................................................................................................. 55 Basic display subcommands..................................................................................................................... 56 f subcommand......................................................................................................................................56 status subcommand.............................................................................................................................58 stat subcommand.................................................................................................................................59 pr subcommand................................................................................................................................... 60 symptom subcommand........................................................................................................................63 Memory register display and decode subcommands...............................................................................64 d, dw, dd, dp, dpw, and dpd subcommands........................................................................................ 64 dc and dpc subcommands..................................................................................................................