Skip to content

Commit

Permalink
Dump the registers on undefined instruction userspace faults
Browse files Browse the repository at this point in the history
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Russell King committed Apr 11, 2014
1 parent 0b1f68e commit b5b6b5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/arm/kernel/traps.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ asmlinkage void __exception do_undefinstr(struct pt_regs *regs)
if (user_debug & UDBG_UNDEFINED) {
printk(KERN_INFO "%s (%d): undefined instruction: pc=%p\n",
current->comm, task_pid_nr(current), pc);
__show_regs(regs);
dump_instr(KERN_INFO, regs);
}
#endif
Expand Down

0 comments on commit b5b6b5f

Please sign in to comment.