[Dwarf-Discuss] How to interpret DW_AT_artificial tag?

2022-02-28 Thread Ron Louzon via Dwarf-Discuss
I have an application which uses DwarfLib to extract type information from debug executable images.  I have found in the DWARF data that some structure types have a "virtual" pointer added as their first member and this pointer's DIE contains the tag DW_AT_artificial=true.  How does that pointer

Re: [Dwarf-Discuss] How to interpret DW_AT_artificial tag?

2022-02-28 Thread Robinson, Paul via Dwarf-Discuss
DW_AT_artificial generally means the item is compiler-generated, or otherwise has no explicit representation in the source. An artificial member in a structure takes up however much space it takes, just like any other member, and the compiler should have generated the correct offsets for the oth

Re: [Dwarf-Discuss] How to interpret DW_AT_artificial tag?

2022-02-28 Thread Greg Clayton via Dwarf-Discuss
> On Feb 28, 2022, at 5:49 AM, Ron Louzon via Dwarf-Discuss > wrote: > > I have an application which uses DwarfLib to extract type information from > debug executable images. I have found in the DWARF data that some structure > types have a "virtual" pointer added as their first member and

Re: [Dwarf-Discuss] How to interpret DW_AT_artificial tag?

2022-02-28 Thread David Blaikie via Dwarf-Discuss
On Mon, Feb 28, 2022 at 12:55 PM Greg Clayton via Dwarf-Discuss < dwarf-discuss@lists.dwarfstd.org> wrote: > > > On Feb 28, 2022, at 5:49 AM, Ron Louzon via Dwarf-Discuss < > dwarf-discuss@lists.dwarfstd.org> wrote: > > I have an application which uses DwarfLib to extract type information from > d

Re: [Dwarf-Discuss] How to interpret DW_AT_artificial tag?

2022-02-28 Thread Greg Clayton via Dwarf-Discuss
> On Feb 28, 2022, at 1:11 PM, David Blaikie via Dwarf-Discuss > wrote: > > > > On Mon, Feb 28, 2022 at 12:55 PM Greg Clayton via Dwarf-Discuss > mailto:dwarf-discuss@lists.dwarfstd.org>> > wrote: > > >> On Feb 28, 2022, at 5:49 AM, Ron Louzon via Dwarf-Discuss >> mailto:dwarf-discuss@l

Re: [Dwarf-Discuss] How to interpret DW_AT_artificial tag?

2022-02-28 Thread Michael Eager via Dwarf-Discuss
On 2/28/22 13:11, David Blaikie via Dwarf-Discuss wrote: On Mon, Feb 28, 2022 at 12:55 PM Greg Clayton via Dwarf-Discuss You could choose to not show this, but I find it is often easier to show this information in case some compiler change in the future marks something that you might