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>
This commit is contained in:
@@ -148,6 +148,7 @@ void show_regs(struct pt_regs * regs)
|
||||
regs->mach, regs->macl, regs->gbr, regs->pr);
|
||||
|
||||
show_trace(NULL, (unsigned long *)regs->regs[15], regs);
|
||||
show_code(regs);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user