Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Simon Marchi via Gdb-patches <gdb-patches@sourceware.org>
To: "Sharma, Alok Kumar" <AlokKumar.Sharma@amd.com>,
	"gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Cc: "George, Jini Susan" <JiniSusan.George@amd.com>,
	"Achra, Nitika" <Nitika.Achra@amd.com>
Subject: Re: [PATCH] Fixed issues with processing of DW_FORM_loclistx / DW_FORM_rnglistx
Date: Thu, 21 Jan 2021 00:53:37 -0500	[thread overview]
Message-ID: <e459d8b0-02f1-7a32-b9e2-d1f8823e3a9b@polymtl.ca> (raw)
In-Reply-To: <BYAPR12MB3223BB32D211AA18E89755759EA19@BYAPR12MB3223.namprd12.prod.outlook.com>



On 2021-01-21 12:49 a.m., Sharma, Alok Kumar via Gdb-patches wrote:
> Hi all,
> 
> I request you all to please review the patch. Below are the details.
> 
> Problem Description:
> GDB produces internal error while processing DW_FORM_loclistx / DW_FORM_rnglistx,
> $ make check RUNTESTFLAGS="CXX_FOR_TARGET=/path/to/clang++ " TEST=gdb.dwarf2/dw5-rnglist-test.exp
> Below is the snippet from gdb.log file.
> ---------
> (gdb) file /dir/gdb/testsuite/outputs/gdb.dwarf2/dw5-rnglist-test/dw5-rnglist-test
> Reading symbols from /dir/gdb/testsuite/outputs/gdb.dwarf2/dw5-rnglist-test/dw5-rnglist-test...
> gdb/dwarf2/attribute.h:232: internal-error: void attribute::set_unsigned_reprocess(ULONGEST): Assertion `form_requires_reprocessing ()' failed.
> A problem internal to GDB has been detected,
> further debugging may prove unreliable.
> Quit this debugging session? (y or n) ERROR: Couldn't load dw5-rnglist-test into GDB (GDB internal error).
> Resyncing due to internal error.
> ---------
> This is due to incomplete handling of DW_FORM_loclistx / DW_FORM_rnglistx,
> which is available with -gdwarf-5 option for clang compiler.
> Resolution:
> Forms DW_FORM_loclistx / DW_FORM_rnglistx need two phases of processing.
> The required modifications in various routines are added to fix the issue.
> 
> gdb/ChangeLog:
> 
> 2021-01-21  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
> 
>         * dwarf2/attribute.c (form_is_unsigned): Handle DW_FORM_loclistx.
>         (form_requires_reprocessing): Handle DW_FORM_loclistx and
>         DW_FORM_rnglistx.
>         * dwarf2/attribute.h (set_address): Handle DW_FORM_loclistx and
>         DW_FORM_rnglistx.
>         * dwarf2/read.c (read_attribute_reprocess): Replaced as_unsigned with
>         as_unsigned_reprocess for DW_FORM_loclistx and DW_FORM_rnglistx.
> 
> Regards,
> Alok
> 

Hi Alok,

Could you please take a look at this series I posted yesterday?

https://sourceware.org/pipermail/gdb-patches/2021-January/175221.html

I think it contains pretty much the same changes (and more).

Simon

      reply	other threads:[~2021-01-21  5:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-21  5:49 Sharma, Alok Kumar via Gdb-patches
2021-01-21  5:53 ` Simon Marchi via Gdb-patches [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=e459d8b0-02f1-7a32-b9e2-d1f8823e3a9b@polymtl.ca \
    --to=gdb-patches@sourceware.org \
    --cc=AlokKumar.Sharma@amd.com \
    --cc=JiniSusan.George@amd.com \
    --cc=Nitika.Achra@amd.com \
    --cc=simon.marchi@polymtl.ca \
    /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