diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-11-26 14:31:03 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-12-22 18:43:49 +0900 |
commit | 9cfc9a9b6fff9ea7a19814b4472b3cb18b7bbdcc (patch) | |
tree | 77642d2de899df449e70fb4e830ee02e738ca4e2 /arch/sh/include/asm/processor_32.h | |
parent | edfd6da0405520b147ab1473ad183a5b32be7082 (diff) | |
download | linux-9cfc9a9b6fff9ea7a19814b4472b3cb18b7bbdcc.tar.gz linux-9cfc9a9b6fff9ea7a19814b4472b3cb18b7bbdcc.tar.bz2 linux-9cfc9a9b6fff9ea7a19814b4472b3cb18b7bbdcc.zip |
sh: Add a simple code dumper for SUPERH32 show_regs().
This implements a simple show_code() that is in turn plugged in to
show_regs() to provide minimal code dumping at the end of the trace.
Built on top of a simple instruction disassembler derived from the
binutils opcode table.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/include/asm/processor_32.h')
-rw-r--r-- | arch/sh/include/asm/processor_32.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/include/asm/processor_32.h b/arch/sh/include/asm/processor_32.h index a46a0207e977..7b14f0cff9b3 100644 --- a/arch/sh/include/asm/processor_32.h +++ b/arch/sh/include/asm/processor_32.h @@ -175,6 +175,7 @@ static __inline__ void enable_fpu(void) void show_trace(struct task_struct *tsk, unsigned long *sp, struct pt_regs *regs); +void show_code(struct pt_regs *regs); extern unsigned long get_wchan(struct task_struct *p); #define KSTK_EIP(tsk) (task_pt_regs(tsk)->pc) |