public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Kumar N, Bhuvanendra" <Bhuvanendra.KumarN@amd.com>
To: Nick Clifton <nickc@redhat.com>,
	"binutils@sourceware.org" <binutils@sourceware.org>
Cc: "George, Jini Susan" <JiniSusan.George@amd.com>,
	"Natarajan, Kavitha" <Kavitha.Natarajan@amd.com>
Subject: RE: [PATCH] Fix range lists issues (dwarf-5)
Date: Fri, 1 Jul 2022 14:29:47 +0000	[thread overview]
Message-ID: <MW2PR12MB4684827272F819508E303E7A87BD9@MW2PR12MB4684.namprd12.prod.outlook.com> (raw)
In-Reply-To: <5753108c-ae52-c5fd-0d7a-ffaa0a856293@redhat.com>

[AMD Official Use Only - General]

> So unless you have a strong objection I would like to leave the code in its current state.

Sure, its fine for me as well. thanks

Regards,
bhuvan

-----Original Message-----
From: Nick Clifton <nickc@redhat.com> 
Sent: Friday, July 1, 2022 6:53 PM
To: Kumar N, Bhuvanendra <Bhuvanendra.KumarN@amd.com>; binutils@sourceware.org
Cc: George, Jini Susan <JiniSusan.George@amd.com>; Natarajan, Kavitha <Kavitha.Natarajan@amd.com>
Subject: Re: [PATCH] Fix range lists issues (dwarf-5)

[CAUTION: External Email]

Hi Kumar,

> 1. in the cases where we fetch values from fetch_indexed_addr(), should we use "addr_index" or "index" itself is fine? because we are fetching it from .debug_addr and emitting. I meant for DW_FORM_loclistx and DW_FORM_rnglistx using index is fine, for else part should we use addr_index or index?
>
> Before fix:     <24>   DW_AT_low_pc      : (addr_index: 0x0): 201e40
> After fix:     <24>   DW_AT_low_pc      : (index: 0x0): 201e40

This is debatable.  All of the forms are indices (indexes ?) of some kind so using the generic term "index" seems appropriate to me.  If we instead use "addr_index" for address indices then shouldn't we use "loclist_index"
and "rnglist_index" for the others ?

Also in the current 2.38 binutils release (and earlier releases) we use "addr_index" by default, but in wide mode we use just "index", which made no sense to me.

So unless you have a strong objection I would like to leave the code in its current state.


> 2. in the new function(display_debug_rnglists) added, newline 
> character printing is missing

Thanks - added.

Cheers
   Nick

      reply	other threads:[~2022-07-01 14:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-27 20:56 Kumar N, Bhuvanendra
2022-06-29 11:17 ` Nick Clifton
2022-06-30 12:50   ` Kumar N, Bhuvanendra
2022-07-01 13:23     ` Nick Clifton
2022-07-01 14:29       ` Kumar N, Bhuvanendra [this message]

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=MW2PR12MB4684827272F819508E303E7A87BD9@MW2PR12MB4684.namprd12.prod.outlook.com \
    --to=bhuvanendra.kumarn@amd.com \
    --cc=JiniSusan.George@amd.com \
    --cc=Kavitha.Natarajan@amd.com \
    --cc=binutils@sourceware.org \
    --cc=nickc@redhat.com \
    /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).