arm: print instructions pointed to by pc
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 15 May 2018 17:42:23 +0000 (19:42 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 24 May 2018 02:06:41 +0000 (22:06 -0400)
commitbd2a13f32959a851d43d9681d9dc9b8bb3eec398
tree5f7426ab078c939cf1c1ea5771b85452a2b2e784
parentd0f855f221307dcbaeeef5a58c5ce816d0af6750
arm: print instructions pointed to by pc

If an exception occurs in a loaded image and the relocation offset is
unknown, it is helful to know the instructions pointed to by the
program counter. This patch adds the missing output.

A possible output is:
    Code: e1c560d0 e12fff1e e120077b e12fff1e (e7f7defb)

The parentheses indicate the instruction causing the exception.

The output can be disassembled using the decodecode script provided
by the Linux kernel project.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
arch/arm/lib/interrupts.c