From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 130262 invoked by alias); 15 Feb 2017 22:58:14 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 130180 invoked by uid 89); 15 Feb 2017 22:58:13 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 15 Feb 2017 22:58:12 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 90581804EB; Wed, 15 Feb 2017 22:58:12 +0000 (UTC) Received: from host1.jankratochvil.net (ovpn-116-221.ams2.redhat.com [10.36.116.221]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v1FMwBKh019374; Wed, 15 Feb 2017 17:58:11 -0500 Subject: [PATCH 2/6] Display user op byte From: Jan Kratochvil To: binutils@sourceware.org Cc: Victor Leschuk Date: Wed, 15 Feb 2017 22:58:00 -0000 Message-ID: <148719949012.19826.7325749095553284967.stgit@host1.jankratochvil.net> In-Reply-To: <148719947800.19826.950569475344047705.stgit@host1.jankratochvil.net> References: <148719947800.19826.950569475344047705.stgit@host1.jankratochvil.net> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2017-02/txt/msg00137.txt.bz2 Hi, I found this small patch useful when decrypting new DWARF. Jan binutils/ChangeLog 2017-02-15 Jan Kratochvil * dwarf.c (decode_location_expression): Display also OP. --- binutils/dwarf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 368c498..9d9a657 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -1421,9 +1421,9 @@ decode_location_expression (unsigned char * data, default: if (op >= DW_OP_lo_user && op <= DW_OP_hi_user) - printf (_("(User defined location op)")); + printf (_("(User defined location op 0x%x)"), op); else - printf (_("(Unknown location op)")); + printf (_("(Unknown location op 0x%x)"), op); /* No way to tell where the next op is, so just bail. */ return need_frame_base; }