Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi <simark@simark.ca>
To: "Achra, Nitika" <Nitika.Achra@amd.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Cc: Ali Tamur <tamur@google.com>,
	"George, Jini Susan" <JiniSusan.George@amd.com>
Subject: Re: [PATCH] Support for DWARF5 location lists entries
Date: Mon, 13 Jan 2020 16:54:00 -0000	[thread overview]
Message-ID: <27bfa975-e28d-eafb-d9db-f0d2be5f5bde@simark.ca> (raw)
In-Reply-To: <MN2PR12MB374424B9198E8B79BD5CC0409A350@MN2PR12MB3744.namprd12.prod.outlook.com>

On 2020-01-13 5:45 a.m., Achra, Nitika wrote:
> [AMD Official Use Only - Internal Distribution Only]
> 
> 
> 
> Hi Simon,
> 
> Thanks for the detailed review. 
> 
> ***
>> +        return DEBUG_LOC_BUFFER_OVERFLOW;
> 
>> Not sure if it's your email client that changed them to spaces, but the lines at this indentation level (there are a few in the patch) should be indented with a tab.
> 
> I was sending the mail in HTML format which is converting tabs to spaces while sending. Now, I am sending in plain text format. It should fix the issue.

Thanks.  The best is to use git-send-email, which makes git send the patch by
email directly, in the right format.  It requires a bit of setup, since you
need to specify your SMTP server settings, but it's really worth it.

If you can't use git-send-email for some reason, the second best option is
git-format-patch.  git-format-patch will produce a complete patch, including
the subject and the commit message.  So if you want to send your patch as an
attachment or paste it in an email, please use git-format-patch instead of
git-diff, which just produces the diff, without the commit message.

Finally, if you manually paste your patch in an email, then you need to make
sure the email client doesn't change anything (like break long lines), otherwise
the patch will be corrupted.

> ***
>> +      *high += u64;
>> +      *new_ptr = loc_ptr;
>> +      return DEBUG_LOC_START_LENGTH;
> 
>> Something I noticed while reviewing, which could be a possible cleanup made in a separate patch if you'd like.  I don't really see why DEBUG_LOC_START_LENGTH exists.  As we return > > the low and high addresses to the caller, it's no different than DEBUG_LOC_START_END.  And indeed, the callers treat both DEBUG_LOC_START_END and DEBUG_LOC_START_LENGTH > > the same way.  So I think _LENGTH could be removed.
> 
>> And since `enum debug_loc_kind` is only used internally in GDB to communicate between functions (it's not used for parsing anything), it doesn't really need to have explicit values for > enumerators.  The documentation about the encoding also seems irrelevant to me, since, again, they are not even used for parsing anything.
> 
> I will made this cleanup in the separate patch.

Thanks!

> ***
>> +    case DW_LLE_startx_endx:
>> +    case DW_LLE_start_end:
>> +    case DW_LLE_default_location:
> 
>> Did you add them here because you don't intend to add support for them, at least for the moment?  If so, please add a comment, like:
> 
>> /* Not supported yet.  */
> 
> Done. Clang and gcc are not emitting the above three entries as of now. So, I didn't add the support for them.

Hmm, I don't see the comment in the new version of the patch.

Simon


  reply	other threads:[~2020-01-13 16:37 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-31  9:41 Achra, Nitika
2019-12-31 18:33 ` Simon Marchi
2020-01-06  7:22   ` Achra, Nitika
2020-01-06 10:14     ` Achra, Nitika
2020-01-08  3:26       ` Simon Marchi
2020-01-13 12:50         ` Achra, Nitika
2020-01-13 16:54           ` Simon Marchi [this message]
2020-01-14  8:04             ` Achra, Nitika
2020-01-14 16:56               ` Simon Marchi
2020-01-16 11:29                 ` Achra, Nitika
2020-01-16 14:16                   ` Simon Marchi
2020-01-16 14:29                     ` Simon Marchi
2020-01-16 15:48                     ` Achra, Nitika
2020-01-16 17:28                       ` Simon Marchi

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=27bfa975-e28d-eafb-d9db-f0d2be5f5bde@simark.ca \
    --to=simark@simark.ca \
    --cc=JiniSusan.George@amd.com \
    --cc=Nitika.Achra@amd.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tamur@google.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