From patchwork Tue May 15 17:42:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 913845 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gmx.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 40llKv6KQqz9ry1 for ; Wed, 16 May 2018 03:43:47 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 908F6C21DD9; Tue, 15 May 2018 17:43:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 4FC03C21DB6; Tue, 15 May 2018 17:42:52 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 76812C21C38; Tue, 15 May 2018 17:42:47 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) by lists.denx.de (Postfix) with ESMTPS id ED49DC21C8B for ; Tue, 15 May 2018 17:42:43 +0000 (UTC) Received: from LPT2.fritz.box ([95.223.128.184]) by mail.gmx.com (mrgmx002 [212.227.17.184]) with ESMTPSA (Nemesis) id 0M1Ee8-1ePqUP3FuK-00t8re; Tue, 15 May 2018 19:42:37 +0200 From: Heinrich Schuchardt To: Albert Aribaud Date: Tue, 15 May 2018 19:42:22 +0200 Message-Id: <20180515174224.10270-1-xypron.glpk@gmx.de> X-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E2GtBF5oRbua392yiIYXn4EDM19Y= Cc: u-boot@lists.denx.de, Heinrich Schuchardt , Alexander Graf Subject: [U-Boot] [PATCH v3 0/2] arm: print instructions pointed to by pc X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" 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. The first patch adds the missing output. The second patch provides the decodecode script from the Linux kernel which can be used to disassemble the 'Code:' line. v3: use the Linux output format for the 'Code:' line Heinrich Schuchardt (2): arm: print instructions pointed to by pc scripts: add decodecode from Linux arch/arm/lib/interrupts.c | 25 ++++++++ scripts/decodecode | 125 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+) create mode 100755 scripts/decodecode