DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

NAME

BT - Display a verbose stack trace of a process

SYNOPSIS

BT [ address ]
Bt [ address ]

DESCRIPTION

The BT command takes an optional argument, the address of a stack frame. It prints out a detailed stack trace, showing stack frame contents.

The BT command only traces as far back as the the entry into kernel space. Bt will trace back into user space.

Both BT and Bt are native kcrash commands. There is also a macro named bt.

Typical output looks like this:


S> BT 
E0004894 B0 E00048A4  <= EBP

cmn_err+B:  E8 10 00 00 00                  call   10   
cmn_err+10:  83 C4 08                       addl   $8,%esp  

E0004898    D00183C0  <= EIP
E000489C    00000003     8(%ebp)
E00048A0    E00048B0     C(%ebp)
E00048A4    E00048EC  <= EBP

m400nmi+691:  E8 6A 3E FA FF                call   FFFA3E6A  
m400nmi+696:  83 C4 10                      addl   $10,%esp  

E00048A8    D0074546  <= EIP
E00048AC    00000003     8(%ebp)
E00048B0    D0164F7C     C(%ebp)
E00048B4    D0164FA8     10(%ebp)
E00048B8    D001248A     14(%ebp)
E00048BC    00000000     %ebx
E00048C0    D0282A1C     %esi
E00048C4    E0004A30     %edi
E00048C8 DC 00000008
E00048CC E0 00000006
E00048D0 E4 00000000
E00048D4 E8 00000001
E00048D8 EC 00000000
E00048DC F0 00000008
E00048E0 F4 00000000
E00048E4 F8 0000492C      ,I
E00048E8 FC 01FE2000
E00048EC    E0004A24  <= EBP

k_trap+3E7:  E8 94 50 03 00                 call   35094  
k_trap+3EC:  83 C4 08                       addl   $8,%esp  

E00048F0    D003EE1C  <= EIP
E00048F4    E0004A30     8(%ebp)
E00048F8    00000001     C(%ebp)
E00048FC    00000007     %ebx
E0004900    D0282A1C     %esi
E0004904    00000002     %edi
( ... etc )

DEFINED IN

stack.k

SEE ALSO

sp

APPENDIX A: Alphabetic Index of Macros