Kernel debugging helpers
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 19 May 2011 01:27:21 +0000 (18:27 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:03 +0000 (17:36 -0700)
commitc2a76c4ec587aa0d51b42607ee71a505160924cc
treecf967196d08c8421b7a8bf2a50516b5b4989bfa0
parent0ae814caf50245a94c723f78688198c09347eea8
Kernel debugging helpers

Moved backtrace to arch/kdebug.c, added helpers to get your function's
caller's PC (roughly), and to get the name of a function that holds a
given PC.  Sparc compiles, though doesn't support the two new helpers.
13 files changed:
kern/arch/i686/arch.h
kern/arch/i686/cpuinfo.c
kern/arch/i686/kdebug.c
kern/arch/i686/kdebug.h [new file with mode: 0644]
kern/arch/sparc/Makefrag
kern/arch/sparc/arch.h
kern/arch/sparc/cpuinfo.c
kern/arch/sparc/kdebug.c [new file with mode: 0644]
kern/arch/sparc/kdebug.h [new file with mode: 0644]
kern/arch/sparc/trap.c
kern/include/kdebug.h
kern/src/Makefrag
kern/src/kdebug.c [new file with mode: 0644]