RE: Macro info NOT accessible with GDB-trunk

Tomar, Sourabh Singh via Gdb
2021-05-17T17:18:04Z

[AMD Public Use]

>It's here:
>https://sourceware.org/pipermail/gdb-patches/2021-May/178871.html
?This is also reported as gdb/27306

Thanks for the patch, this seems to solve the all the problems associated/mentioned with previous thread.
Ran some macro associated test, all seemed good to me.

Thanks,
Sourabh.

-----Original Message-----
From: Tomar, Sourabh Singh
Sent: Monday, May 17, 2021 10:35 PM
To: Keith Seitz <keiths@redhat.com>; gdb@sourceware.org
Cc: George, Jini Susan <JiniSusan.George@amd.com>; Achra, Nitika <Nitika.Achra@amd.com>; Sharma, Alok Kumar <AlokKumar.Sharma@amd.com>; Kumar N, Bhuvanendra <Bhuvanendra.KumarN@amd.com>
Subject: RE: Macro info NOT accessible with GDB-trunk

[AMD Public Use]

Thanks For the quick response keith!

Do you have any pointers to the base commit/change that might've caused this ?
IIRC, it was working fine couple og weeks back (That was the foundation of my initial patch that things were working fine with GCC and not with CLANG). Now as it seems GCC generated binaries are also not showing macro info at all ☹

Thanks!
Sourabh.

-----Original Message-----
From: Keith Seitz <keiths@redhat.com>
Sent: Monday, May 17, 2021 10:21 PM
To: Tomar, Sourabh Singh <SourabhSingh.Tomar@amd.com>; gdb@sourceware.org
Cc: George, Jini Susan <JiniSusan.George@amd.com>; Achra, Nitika <Nitika.Achra@amd.com>; Sharma, Alok Kumar <AlokKumar.Sharma@amd.com>; Kumar N, Bhuvanendra <Bhuvanendra.KumarN@amd.com>
Subject: Re: Macro info NOT accessible with GDB-trunk

[CAUTION: External Email]

On 5/17/21 9:35 AM, Tomar, Sourabh Singh via Gdb wrote:

> Can somebody please validate this ?
>

Yes, I can verify this, and I've posted a tentative patch to fix this in your gdb-patches thread titled "Fix macro info lookup for binaries containing DWARFv5 line table."

It's here:

https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsourceware.org%2Fpipermail%2Fgdb-patches%2F2021-May%2F178871.html&amp;data=04%7C01%7Csourabhsingh.tomar%40amd.com%7C505927ec7b8b45e9579e08d91953f963%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637568670724930270%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&amp;sdata=9ZB%2BPsvD9GZrlMZZpLE5Ild8mJVpjJzWxGq%2FcrSWOkY%3D&amp;reserved=0