From: Tuomas Tynkkynen <tuomas@tuxera.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 1/1] arm: print instructions pointed to by pc
Date: Sun, 13 May 2018 15:22:58 +0300 [thread overview]
Message-ID: <20180513152258.5b3bc5c3@duuni> (raw)
In-Reply-To: <20180510143830.6060-1-xypron.glpk@gmx.de>
Hi,
On Thu, 10 May 2018 16:38:30 +0200
Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
> 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:
> *pc: fb de f7 e7 1e ff 2f e1 01 00 50 e3 f0 4d 2d e9 01 80 a0 e1
>
> The output can be disassembled with
> xxd -pc -r - > a.out
> $(CROSS_COMPILE)objdump -D -marm -b binary a.out
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
> ---
> v2
> print bytes not halfwords
Note that Linux already comes with a scripts/decodecode tool where you paste the
output of an Oops and it disassembles the "Code: " line from the dump. So I'd
vote for importing scripts/decodecode from Linux and making U-Boot's output
compatible with Linux.
next prev parent reply other threads:[~2018-05-13 12:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-10 14:38 [U-Boot] [PATCH v2 1/1] arm: print instructions pointed to by pc Heinrich Schuchardt
2018-05-13 12:22 ` Tuomas Tynkkynen [this message]
2018-05-13 14:45 ` Marek Vasut
2018-05-24 8:57 ` Alexander Graf
2018-05-24 9:06 ` Marek Vasut
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180513152258.5b3bc5c3@duuni \
--to=tuomas@tuxera.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.