public inbox for dwz@sourceware.org
 help / color / mirror / Atom feed
From: "Sharma, Alok Kumar" <AlokKumar.Sharma@amd.com>
To: "dwz@sourceware.org" <dwz@sourceware.org>
Cc: "George, Jini Susan" <JiniSusan.George@amd.com>,
	"Achra, Nitika" <Nitika.Achra@amd.com>,
	"E, Nagajyothi" <Nagajyothi.E@amd.com>,
	"Joseph, Ancel" <Ancel.Joseph@amd.com>
Subject: [PATCH] Support for DWARF operator DW_OP_GNU_const_index
Date: Mon, 23 Aug 2021 05:39:33 +0000	[thread overview]
Message-ID: <CO6PR12MB54916FFC0C1F93FC6B5F01859EC49@CO6PR12MB5491.namprd12.prod.outlook.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

Hi all,

Would you please review the small patch needed to support DW_OP_GNU_const_index

     * dwz.c(read_exprloc): Adding case to support DW_OP_GNU_const_index .
     * dwz.c(adjust_exprloc): Adding case to support DW_OP_GNU_const_index .

Regards,
Alok

[-- Attachment #2: 0002-Support-for-DWARF-operator-DW_OP_GNU_const_index.patch --]
[-- Type: application/octet-stream, Size: 1087 bytes --]

From 03d71e16451f02c7fd7a28a12f75285ccbe7aa9f Mon Sep 17 00:00:00 2001
From: Alok Kumar Sharma <AlokKumar.Sharma@amd.com>
Date: Fri, 20 Aug 2021 18:17:45 +0530
Subject: [PATCH 2/9] Support for DWARF operator DW_OP_GNU_const_index

There were changes required to support DW_OP_GNU_const_index

 * dwz.c(read_exprloc): Adding case to support DW_OP_GNU_const_index .
 * dwz.c(adjust_exprloc): Adding case to support DW_OP_GNU_const_index .
---
 dwz.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dwz.c b/dwz.c
index 87d526b..9ed609c 100644
--- a/dwz.c
+++ b/dwz.c
@@ -2414,6 +2414,7 @@ read_exprloc (DSO *dso, dw_die_ref die, unsigned char *ptr, size_t len,
 	case DW_OP_consts:
 	case DW_OP_breg0 ... DW_OP_breg31:
 	case DW_OP_fbreg:
+	case DW_OP_GNU_const_index:
 	  skip_leb128 (ptr);
 	  break;
 	case DW_OP_bregx:
@@ -12106,6 +12107,7 @@ adjust_exprloc (dw_cu_ref cu, dw_die_ref die, dw_cu_ref refcu,
 	case DW_OP_consts:
 	case DW_OP_breg0 ... DW_OP_breg31:
 	case DW_OP_fbreg:
+	case DW_OP_GNU_const_index:
 	  skip_leb128 (ptr);
 	  break;
 	case DW_OP_bregx:
-- 
2.17.1


             reply	other threads:[~2021-08-23  5:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-23  5:39 Sharma, Alok Kumar [this message]
2021-10-03 12:37 ` Sharma, Alok Kumar

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=CO6PR12MB54916FFC0C1F93FC6B5F01859EC49@CO6PR12MB5491.namprd12.prod.outlook.com \
    --to=alokkumar.sharma@amd.com \
    --cc=Ancel.Joseph@amd.com \
    --cc=JiniSusan.George@amd.com \
    --cc=Nagajyothi.E@amd.com \
    --cc=Nitika.Achra@amd.com \
    --cc=dwz@sourceware.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).