> -----Original Message----- > From: Dwarf-Discuss <dwarf-discuss-boun...@lists.dwarfstd.org> On Behalf > Of Adrian Prantl via Dwarf-Discuss > Sent: Friday, March 20, 2020 1:29 PM > To: Michael Eager <ea...@eagercon.com> > Cc: dwarf-discuss@lists.dwarfstd.org > Subject: Re: [Dwarf-Discuss] Use of Location Description operations in > DWARF Expressions? > > > > > On Mar 19, 2020, at 5:49 PM, Michael Eager via Dwarf-Discuss <dwarf- > disc...@lists.dwarfstd.org> wrote: > > > > My reading of sections 2.5 & 2.6 is that you cannot have a DW_OP_piece > in an DWARF expression. > > > > I wonder if this is an intentional part of the design because of > ambiguity/correctness issues or is this just something that happens to > fall out of the way the text is worded? I can see how such a restriction > might simplify DWARF consumers, but it also seems like an arbitrary > restriction for which there may not be a technical reason. My intuition (clearly I wasn't there at the time) is that this is like a C expression being an rvalue (DWARF expression) or lvalue (location description). Values and locations aren't the same thing. --paulr > That distinction is important, because if there is a *technical* reason > for not supporting them we should refrain from implementing this in LLVM. > But if there isn't, there is no harm done in implementing it as an > extension, and DWARF consumers that don't support it can just ignore these > expressions and return N/A. > > -- adrian > _______________________________________________ > Dwarf-Discuss mailing list > Dwarf-Discuss@lists.dwarfstd.org > http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org _______________________________________________ Dwarf-Discuss mailing list Dwarf-Discuss@lists.dwarfstd.org http://lists.dwarfstd.org/listinfo.cgi/dwarf-discuss-dwarfstd.org
Re: [Dwarf-Discuss] Use of Location Description operations in DWARF Expressions?
Robinson, Paul via Dwarf-Discuss Mon, 23 Mar 2020 06:28:49 -0700
- [Dwarf-Discuss] Use of Location Descripti... David Stenberg via Dwarf-Discuss
- Re: [Dwarf-Discuss] Use of Location ... Michael Eager via Dwarf-Discuss
- Re: [Dwarf-Discuss] Use of Locat... Adrian Prantl via Dwarf-Discuss
- Re: [Dwarf-Discuss] Use of L... Robinson, Paul via Dwarf-Discuss
- Re: [Dwarf-Discuss] Use ... Michael Eager via Dwarf-Discuss
- Re: [Dwarf-Discuss]... Todd Allen via Dwarf-Discuss
- Re: [Dwarf-Discuss]... Cary Coutant via Dwarf-Discuss
- Re: [Dwarf-Disc... Michael Eager via Dwarf-Discuss
- Re: [Dwarf-... Cary Coutant via Dwarf-Discuss