<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On 24 Sep 2014, at 02:32, Robinson, Paul <<a href="mailto:Paul_Robinson@playstation.sony.com" class="">Paul_Robinson@playstation.sony.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">What do you use as a debugger?<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><a name="_MailEndCompose" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Sony has a proprietary debugger that plugs into Visual Studio and knows how to manage processes on the game consoles. It's not the only non-gdb DWARF-speaking debugger I've ever used, although the other one I'm aware of is basically defunct now.<o:p class=""></o:p></span></a></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">Certainly it's possible to make this target-dependent - see DWARF2 support for Darwin, etc.<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Right, I didn't think that would be much of a problem given the existing practices.<span class="Apple-converted-space"> </span></span><span style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);" class="">J</span><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">The DWARF spec doesn't really describe the world of templates in a complete and useful manner<span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""><o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Yes, well, hmmm.  We tried to improve that some in DWARF 5 (describes non-type non-scalar parameters [this essentially codifies what gcc does, btw], insists that parameter DIEs follow the source order, has a flag for defaulted parameters…) But one thing about DWARF is that it invariably says (and always has) that the names of things are as in the source program, and that clearly stopped being true (or at least, was noticeably less true) for these typedef'd template parameters in Clang 3.5. Which is where this entire thread came from (& I wonder whether we scared off the OP).</span></div></div></div></blockquote><div><br class=""></div><div>I’m still here and not too scared :-) I started this thread to see if I could gather consensus about the idea and maybe the implementation. I think the idea of emitting more source-accurate debug information is well received and I’ll certainly pursue that. Regarding the implementation, we need to be pragmatic. We are not starting from scratch, and I’d be the opinion that specs actually matter less than what the widely available consumers do (I hope I’m not scaring you off now!). So we need to find a way to provide this new information without disrupting the existing user base - which I consider to be lldb and gdb.</div><div><br class=""></div><div>I will revisit the patch when I have some time. The typedef approach (with a potential AT_artificial) seems to be the only workable solution in the short term. Debates on where to use the typedef and where to use the implementation type can happen later on. I’m sure getting the simple additional typedef in the description without breaking anything in existing test suites might prove complicated enough.</div><div><br class=""></div><div>Other feedback I gathered from the thread is that we should go a bit further and propagate the typedef into the class definition also. This makes sense to me, but is more involved, as it hits the type duplication issues you have been debating with David. As far I can see, nothing has been proposed to address this and I can’t see a way myself. It would seem strange to have:</div><div><br class=""></div><div>typedef int A;</div><div>template<typename T> struct S { T member; };</div><div>S<A> s;</div><div><br class=""></div><div>generate</div><div><br class=""></div><div>(0) DW_TAG_typedef</div><div>      DW_AT_name: “S<A>”</div><div>      DW_AT_type: (2)</div><div><br class=""></div><div>(1) DW_TAG_typedef</div><div>      DW_AT_name: “A”</div><div>      DW_AT_type: -> int</div><div><br class=""></div><div>(2) DW_TAG_struct_type</div><div>      DW_AT_name: “S<int>”</div><div>      DW_TAG_member:</div><div>        DW_AT_name: “member”</div><div>        DW_AT_type: (1)</div><div><br class=""></div><div>In this case (and if S<A> is the only ‘name’ used in the source) it would be more logical to have the “S<A>” and "S<int>” exchanged in the pseudo-dwarf above.</div><div><br class=""></div><div>Anyway, thanks for all the inputs!</div><div>Fred</div><br class=""><blockquote type="cite" class=""><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">a lot of this is going to come down to "what do consumers and producers agree to".<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Heh.  ALL of it comes down to that, but it's nice if the spec is somehow relevant to that agreement!  If you think there's something crucial that's still missing from DWARF 5 (Eric has a copy), I can buy you a round at the next social and we can chat.<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">--paulr<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></div><div style="border-style: none none none solid; border-left-color: blue; border-left-width: 1.5pt; padding: 0in 0in 0in 4pt;" class=""><div class=""><div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in;" class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span style="font-size: 10pt; font-family: Tahoma, sans-serif;" class="">From:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif;" class=""><span class="Apple-converted-space"> </span>David Blaikie [<a href="mailto:dblaikie@gmail.com" class="">mailto:dblaikie@gmail.com</a>]<span class="Apple-converted-space"> </span><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Tuesday, September 23, 2014 2:32 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Robinson, Paul<br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span>Nick Lewycky; <a href="mailto:lldb-dev@cs.uiuc.edu" class="">lldb-dev@cs.uiuc.edu</a>; <a href="mailto:llvm-commits@cs.uiuc.edu" class="">llvm-commits@cs.uiuc.edu</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [lldb-dev] [RFC][PATCH] Keep un-canonicalized template types in the debug information<o:p class=""></o:p></span></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">On Tue, Sep 23, 2014 at 2:24 PM, Robinson, Paul <<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a>> wrote:<o:p class=""></o:p></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: 'Courier New';" class="">> One of the issues is that there's only /so/ different we can be from</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: 'Courier New';" class="">> GCC here before types/declarations/definitions won't match up in GDB.</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><a name="148a466a161dceb2__MailEndCompose" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span></a><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">I think this might get to the nub of it:  I agree that GCC/GDB matters, I disagree that GCC/GDB is what matters.  GCC/GDB compatibility may be an important use-case but it is not the Reference Implementation of DWARF, and in particular GCC/GDB compatibility is completely irrelevant to my environment.  My environment is 100% Clang,</span><o:p class=""></o:p></div></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">What do you use as a debugger? (or other DWARF consumers that might care about whether two bits of DWARF describe the same type in the same sense that the C++ language defines)<o:p class=""></o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;" class=""><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">and we care more about what the DWARF spec says than we do about whatever GCC/GDB might choose to do for one reason or another.  So, if GCC/GDB compatibility means diverging so noticeably from what the spec says (i.e., that the name is as it is in the source program)  maybe this is a point worth identifying as one where a divergence occurs, and make the choice target-dependent.</span><o:p class=""></o:p></div></div></div></blockquote><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">Certainly it's possible to make this target-dependent - see DWARF2 support for Darwin, etc.<o:p class=""></o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;" class=""><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">In a way it feels somewhat analogous to choices in supporting extensions/dialects of C++.  For practical purposes it's very worthwhile to the community to support things that GCC supports, but that doesn't mean that GCC defines the standard.  In the case at hand, Clang has strayed from the letter of the DWARF spec, and we'd really like to see a way back toward it.</span><o:p class=""></o:p></div></div></div></blockquote><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">The DWARF spec doesn't really describe the world of templates in a complete and useful manner. I think it's problematic to try to wedge the wording into saying "DWARF says this is the one way to encode this info" - DWARF makes some general suggestions about how certain constructs could be mapped, but until there's a document like the C++ ABI that says "this is the required lowering from C++ to DWARF" (and there's buy-in to conform to this from both DWARF producers and consumers) a lot of this is going to come down to "what do consumers and producers agree to".<o:p class=""></o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin-left: 4.8pt; margin-right: 0in;" class=""><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">We're entirely willing to do work toward getting things realigned (admittedly I personally have been mostly MIA for the past year, but I am seeing an occasional photon from down the far end of my current tunnel) given that the primary contributor and code owner are willing to go along with it.</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">Thanks,</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class="">--paulr</span><o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-size: 11pt; font-family: Calibri, sans-serif; color: rgb(31, 73, 125);" class=""> </span><o:p class=""></o:p></div><div class=""><div style="border-style: solid none none; border-top-color: rgb(181, 196, 223); border-top-width: 1pt; padding: 3pt 0in 0in;" class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><b class=""><span style="font-size: 10pt; font-family: Tahoma, sans-serif;" class="">From:</span></b><span style="font-size: 10pt; font-family: Tahoma, sans-serif;" class=""><span class="Apple-converted-space"> </span>David Blaikie [mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a>]<span class="Apple-converted-space"> </span><br class=""><b class="">Sent:</b><span class="Apple-converted-space"> </span>Monday, September 22, 2014 3:47 PM<br class=""><b class="">To:</b><span class="Apple-converted-space"> </span>Nick Lewycky<br class=""><b class="">Cc:</b><span class="Apple-converted-space"> </span>Robinson, Paul;<span class="Apple-converted-space"> </span><a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a>;<span class="Apple-converted-space"> </span><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a><br class=""><b class="">Subject:</b><span class="Apple-converted-space"> </span>Re: [lldb-dev] [RFC][PATCH] Keep un-canonicalized template types in the debug information</span><o:p class=""></o:p></div></div></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">On Mon, Sep 22, 2014 at 3:40 PM, Nick Lewycky <<a href="mailto:nicholas@mxc.ca" target="_blank" style="color: purple; text-decoration: underline;" class="">nicholas@mxc.ca</a>> wrote:<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">Robinson, Paul wrote:<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">I think it comes down to how the information is planning to be used. A<br class="">consumer with the dwarf information today could, in fact, get to the<br class="">S<int> type from a user who types S<A> pretty easily right?<br class=""><br class="">If the typedef actually appears in the DWARF, the consumer could figure<br class="">out what the user meant by typing S<A>, yes. In my experiments the<br class="">typedef is not always present, which leaves the user up a creek with no<br class="">paddle.<br class=""><br class="">How the debugger presents the types of things is also a consideration,<br class="">however. This is more evident with a less trivial example, such as the<br class="">vector typedef I described previously. It is clearly a step backward in<br class="">the end-user debugging experience if people are used to seeing<br class=""><br class="">S<int4><br class=""><br class="">which the debugger has been displaying all along, but suddenly they<br class="">start seeing instead<br class=""><br class="">S<int __attribute__((ext_vector_type(4)))><br class=""><br class="">which is what has started happening. Especially if 'int4' no longer<br class="">appears as a typedef at all, this is Just Wrong.<o:p class=""></o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><br class="">In clang, ConvertTypeToDiagnosticString deals with vectors specially. The rationale, I think, is to prevent the compiler from showing the internal implementation detail of how float4 and friends are defined. I think that this is the wrong approach and would have preferred a second attribute. Does attribute nodebug on a typedef have any meaning yet? Could we repurpose it to mean that you shouldn't look through this typedef for compiler diagnostics nor debug info? Any any case, our behaviour on diagnostics and debug info should probably match here.<o:p class=""></o:p></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><span style="font-family: 'Courier New';" class="">One of the issues is that there's only /so/ different we can be from GCC here before types/declarations/definitions won't match up in GDB. I believe GCC has some smarts to tolerate differences like S<0> versus S<0u> or S<'\0'> I think... at least some of those, but I don't know how it'll go with:<br class=""><br class="">  S<__attribute__((__vector_size__(4 * sizeof(int)))) int><br class=""><br class="">V<br class=""><br class="">  S<__vector(4) int><br class=""><br class="">(using a GCC-compatible syntax, vector_size(sizeof(int) * 4) rather than the ext_vector_type which isn't supported by GCC)<br class=""><br class="">Huh... apparently GDB ignores the entire adornment and allows func(S<__vector(4) int>) to be called with a variable of type S<__attribute__((__vector_size__(5 * sizeof(int)))) int> even... not sure what to make of any of that.</span><o:p class=""></o:p></div></div><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div></div><blockquote style="border-style: none none none solid; border-left-color: rgb(204, 204, 204); border-left-width: 1pt; padding: 0in 0in 0in 6pt; margin: 5pt 0in 5pt 4.8pt;" class=""><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><br class="">Nick<o:p class=""></o:p></p><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">Wolfgang did some bisection and traced this change to r205447, and the<br class="">intent of that change was centered on default template arguments. This<br class="">de-referencing of typedefs appears to have been an *unintended side<br class="">effect* of that patch.<br class=""><br class="">I want my typedef'd template parameters back please…<br class=""><br class="">--paulr<br class=""><br class="">*From:*Eric Christopher [mailto:<a href="mailto:echristo@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">echristo@gmail.com</a>]<br class="">*Sent:* Thursday, September 18, 2014 10:07 PM<br class="">*To:* Robinson, Paul<br class="">*Cc:* David Blaikie;<span class="Apple-converted-space"> </span><a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a>;<span class="Apple-converted-space"> </span><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a>;<br class="">Frédéric Riss<br class="">*Subject:* Re: [lldb-dev] [RFC][PATCH] Keep un-canonicalized template<br class="">types in the debug information<br class=""><br class="">On Thu, Sep 18, 2014 at 5:57 PM, Robinson, Paul<br class=""><<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a><o:p class=""></o:p></div><div class=""><div class=""><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;"><mailto:<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a>>> wrote:<br class=""><br class="">The (limited) feedback I've had from the committee is along these lines.<br class=""><br class="">    If the program uses the type name "S<A>" for something, the DWARF<br class="">    should fully describe the type named "S<A>" because that's the name<br class="">    as-in-the-source-program. If you use both S<A> and S<int> in the<br class="">    program in different places, then you need to describe both in the<br class="">    DWARF. There is sadly no standard way to associate the two as<br class="">    aliases. Yes in C++ they are the same; in standard DWARF they are not.<br class=""><br class="">Yeah, I'm not sure I agree with this. I've seen the thread and I'm not<br class="">sure I like the logic.<br class=""><br class="">    The typedef S<A> => S<int> hack might work [if the debugger can<br class="">    tolerate that]. It is obviously not a real typedef. You could mark<br class="">    it artificial as an indication that something funny is going on<br class="">    (artificial typedefs being highly atypical).<br class=""><br class="">    The DW_AT_specification hack is just wrong, because neither S<A> nor<br class="">    S<int> is completing the other.<br class=""><br class="">    I need to step back from the typedef hack. I believe our debugger<br class="">    throws away the <brackets> on the theory that it can reconstruct<br class="">    them from template-parameter children; that is, the <bracket> part<br class="">    of the name is redundant. The typedef hack does not provide those<br class="">    children, and the <brackets> are not redundant, so this is likely to<br class="">    be a problem for us. Feh. I'd forgotten about that detail when I<br class="">    started liking the typedef hack. Yes, this means I don't have a<br class="">    suggestion, apart from emitting things redundantly as needed to<br class="">    preserve as-in-the-source-program.<br class=""><br class="">    Here's a bizarre data point. Going back to at least 3.2, Clang has<br class="">    emitted S<int> instead of S<A>. But with my vector example, it used<br class="">    to use the typedef name up through 3.4. That changed in 3.5, where<br class="">    the type name 'int4' has entirely disappeared from the DWARF.<br class="">    Clearly that's a bug; the type name needs to be in there somewhere.<br class=""><br class="">    One more thing:<br class=""><br class="">    it'd be good to figure out how to deal with all possible names for<br class="">    the type, even the ones the user hasn't written (eg: typedef int A;<br class="">    typedef int B; and make sure that the debugger can handle S<int>,<br class="">    S<A> and S<B> in their code, even though the user only wrote one of<br class="">    those in the source).<br class=""><br class="">    The answer to this "how to deal" question is with debugger smarts,<br class="">    not more complicated DWARF. DWARF is about the program as-written<br class="">    and as-compiled, not about<br class="">    anything-the-user-might-conceivably-try-to-write-in-the-debugger.<br class="">    Handling this in DWARF is a combinatorial nightmare, for completely<br class="">    speculative purposes. Not gonna happen.<br class=""><br class="">I think it comes down to how the information is planning to be used. A<br class="">consumer with the dwarf information today could, in fact, get to the<br class="">S<int> type from a user who types S<A> pretty easily right? Now if you'd<br class="">like a way to print out the textual representation of every type as it<br class="">was used in the program that's likely to be less possible without some<br class="">serious duplication of dwarf. You could use an unnamed type for the base<br class="">and then use DW_AT_specification with just a bare DW_AT_name to avoid<br class="">some of the unpleasantness of the specification hack, but then you come<br class="">to the problem of template arguments etc. It's fairly crazy to consider,<br class="">but a user could quite easily write:<br class=""><br class="">new std::vector<int, allocator>()<br class=""><br class="">with some allocator that was never used in the program with vector and<br class="">expect the code to be generated at run time and the rest of the type to<br class="">be found.<br class=""><br class="">Anyhow, I think the best bet is for the most general type to be left in<br class="">the debug information and then the typedefs etc to be their own DIEs.<br class="">Unless we have some use that we're not talking about here?<br class=""><br class="">-eric<br class=""><br class="">    --paulr<o:p class=""></o:p></p></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">    *From:*David Blaikie [mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a><br class="">    <mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a>>]<br class="">    *Sent:* Thursday, September 18, 2014 4:03 PM<br class=""><br class=""><br class="">    *To:* Robinson, Paul<br class="">    *Cc:*<span class="Apple-converted-space"> </span><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a><span class="Apple-converted-space"> </span><mailto:<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a>>;<br class="">    Greg Clayton; Frédéric Riss;<span class="Apple-converted-space"> </span><a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a><br class="">    <mailto:<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a>>;<span class="Apple-converted-space"> </span><a href="mailto:jingham@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">jingham@apple.com</a><br class="">    <mailto:<a href="mailto:jingham@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">jingham@apple.com</a>><br class="">    *Subject:* Re: [lldb-dev] [RFC][PATCH] Keep un-canonicalized<br class="">    template types in the debug information<br class=""><br class="">    On Thu, Sep 18, 2014 at 2:40 PM, Robinson, Paul<br class="">    <<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a><o:p class=""></o:p></div><div class=""><div class=""><p class="MsoNormal" style="margin: 0in 0in 12pt; font-size: 12pt; font-family: 'Times New Roman', serif;">    <mailto:<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a>>> wrote:<br class=""><br class="">    David,<br class=""><br class="">    Sorry, thought you were protesting the typedef idea as interfering<br class="">    with deduplication or type-unit commonality.<br class=""><br class="">    So to recap, if we have source like this:<br class=""><br class="">    typedef int A;<br class=""><br class="">    template<typename T> struct S { T member; };<br class=""><br class="">    S<A> s_a;<br class=""><br class="">    then we'll get<br class=""><br class="">    DW_TAG_typedef<br class=""><br class="">    DW_AT_name "A"<br class=""><br class="">    DW_AT_type -> int<br class=""><br class="">    DW_TAG_structure_type<br class=""><br class="">    DW_AT_name "S<A>"<br class=""><br class="">    DW_TAG_member<br class=""><br class="">    DW_AT_name "member"<br class=""><br class="">    DW_AT_type -> int // or the typedef for "A" ?<br class=""><br class="">    DW_TAG_template_type_parameter<br class=""><br class="">    DW_AT_name "T"<br class=""><br class="">    DW_AT_type -> (the typedef for "A")<br class=""><br class="">    Are you suggesting putting the rest of S<int> here too? Or how would<br class="">    S<A> refer to S<int> for the rest of the implementation?<br class=""><br class="">        DW_TAG_variable<br class=""><br class="">        DW_AT_name "s_a"<br class=""><br class="">        DW_AT_type -> (the above structure_type)<br class=""><br class="">    Ah, no - just a typedef of the template:<br class=""><br class="">    1: DW_TAG_structure_type // the debug info we already produce today<br class="">    (S<int>)<br class="">    ...<br class=""><br class="">    2: DW_TAG_typedef<br class="">    DW_AT_name "S<A>"<br class="">    DW_AT_type (1)<br class=""><br class="">    And honestly, the variable would still be of type (1).<br class=""><br class="">    Duplicating the entire type for each way of naming the same type is,<br class="">    I'm fairly sure, not going to work for debuggers today. If someone<br class="">    wants to propose a way of encoding this that will need new<br class="">    code/support from debuggers, etc, then I feel the right venue to<br class="">    discuss that is the DWARF committee - because you'll need buy-in<br class="">    from producers and consumers. Without having that discussion, I<br class="">    believe just providing a typedef of the template specialization is<br class="">    probably a benefit to users.<br class=""><br class="">    If we want to talk about a 'right' representation of this for DWARF<br class="">    that would necessitate more substantial changes to both DWARF<br class="">    producers and consumers... I think it'll be a bit more involved than<br class="">    even what you're proposing. If we're going to deal with that, it'd<br class="">    be good to figure out how to deal with all possible names for the<br class="">    type, even the ones the user hasn't written (eg: typedef int A;<br class="">    typedef int B; and make sure that the debugger can handle S<int>,<br class="">    S<A> and S<B> in their code, even though the user only wrote one of<br class="">    those in the source).<br class=""><br class="">        Yes?<br class=""><br class="">        --paulr<o:p class=""></o:p></p></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">        *From:*David Blaikie [mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a><br class="">        <mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a>>]<br class="">        *Sent:* Thursday, September 18, 2014 1:09 PM<br class="">        *To:* Robinson, Paul<br class="">        *Cc:*<span class="Apple-converted-space"> </span><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a><br class="">        <mailto:<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a>>; Greg Clayton; Frédéric Riss;<br class="">       <span class="Apple-converted-space"> </span><a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a><span class="Apple-converted-space"> </span><mailto:<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a>>;<br class="">       <span class="Apple-converted-space"> </span><a href="mailto:jingham@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">jingham@apple.com</a><span class="Apple-converted-space"> </span><mailto:<a href="mailto:jingham@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">jingham@apple.com</a>><br class="">        *Subject:* Re: [lldb-dev] [RFC][PATCH] Keep un-canonicalized<br class="">        template types in the debug information<br class=""><br class="">        On Thu, Sep 18, 2014 at 1:05 PM, David Blaikie<br class="">        <<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a><span class="Apple-converted-space"> </span><mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a>>> wrote:<br class=""><br class="">        On Thu, Sep 18, 2014 at 1:00 PM, Robinson, Paul<br class="">        <<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a><br class="">        <mailto:<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a>>> wrote:<br class=""><br class="">         >From: David Blaikie [mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a><br class="">        <mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a>>]<br class="">         >On Wed, Sep 17, 2014 at 11:54 AM, Robinson, Paul<br class="">        <<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a><br class="">        <mailto:<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a>>> wrote:<br class="">         >> From: David Blaikie [mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a><br class="">        <mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a>>]<br class="">         >> > On Wed, Sep 17, 2014 at 7:45 AM, Robinson, Paul<br class="">        <<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a><br class="">        <mailto:<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a>>> wrote:<br class="">         >> > > From: David Blaikie [mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a><br class="">        <mailto:<a href="mailto:dblaikie@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dblaikie@gmail.com</a>>]<br class="">         >> > > On Sat, Sep 13, 2014 at 6:54 PM, Robinson, Paul<br class="">        <<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a><br class="">        <mailto:<a href="mailto:Paul_Robinson@playstation.sony.com" target="_blank" style="color: purple; text-decoration: underline;" class="">Paul_Robinson@playstation.sony.com</a>>> wrote:<br class="">         >> > > > > > On 09 Sep 2014, at 00:01,<span class="Apple-converted-space"> </span><a href="mailto:jingham@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">jingham@apple.com</a><o:p class=""></o:p></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">        <mailto:<a href="mailto:jingham@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">jingham@apple.com</a>> wrote:<br class="">         >> > > > > > ><br class="">         >> > > > > > > From the debugger's standpoint, the functional<br class="">        concern is that if you do<br class="">         >> > > > > > something more real, like:<br class="">         >> > > > > > ><br class="">         >> > > > > > > typedef int A;<br class="">         >> > > > > > > template <typename T><br class="">         >> > > > > > > struct S<br class="">         >> > > > > > > {<br class="">         >> > > > > > > T my_t;<br class="">         >> > > > > > > };<br class="">         >> > > > > > ><br class="">         >> > > > > > > I want to make sure that the type of my_t is<br class="">        given as "A" not as "int".<br class="">         >> > > > > > The reason for that is that it is not uncommon to<br class="">        have data formatters<br class="">         >> > > > > > that trigger off the typedef name. This happens<br class="">        when you use some common<br class="">         >> > > > > > underlying type like "int" but the value has some<br class="">        special meaning when it<br class="">         >> > > > > > is formally an "A", and you want to use the data<br class="">        formatters to give it an<br class="">         >> > > > > > appropriate presentation. Since the data<br class="">        formatters work by matching type<br class="">         >> > > > > > name, starting from the most specific on down, it<br class="">        is important that the<br class="">         >> > > > > > typedef name be preserved.<br class="">         >> > > > > > ><br class="">         >> > > > > > > However, it would be really odd to see:<br class="">         >> > > > > > ><br class="">         >> > > > > > > (lldb) expr -T -- my_s<br class="">         >> > > > > > > (S<int>) $1 = {<br class="">         >> > > > > > > (A) my_t = 5<br class="">         >> > > > > > > }<br class="">         >> > > > > > ><br class="">         >> > > > > > > instead of:<br class="">         >> > > > > > ><br class="">         >> > > > > > > (lldb) expr -T -- my_s<br class="">         >> > > > > > > (S<A>) $1 = {<br class="">         >> > > > > > > (A) my_t = 5<br class="">         >> > > > > > > }<br class="">         >> > > > > > ><br class="">         >> > > > > > > so I am in favor of presenting the template<br class="">        parameter type with the most<br class="">         >> > > > > > specific name it was given in the overall template<br class="">        type name.<br class="">         >> > > > > ><br class="">         >> > > > > > OK, we get this wrong today. I’ll try to look into it.<br class="">         >> > > > > ><br class="">         >> > > > > > What’s your take on the debug info representation<br class="">        for the templated class<br class="">         >> > > > > > type? The tentative patch introduces a typedef<br class="">        that declares S<A> as a<br class="">         >> > > > > > typedef for S<int>. The typedef doesn’t exist in<br class="">        the code, thus I find it<br class="">         >> > > > > > a bit of a lie to the debugger. I was more in<br class="">        favour of something like :<br class="">         >> > > > > ><br class="">         >> > > > > > DW_TAG_variable<br class="">         >> > > > > > DW_AT_type: -> DW_TAG_structure_type<br class="">         >> > > > > > DW_AT_name: S<A><br class="">         >> > > > > > DW_AT_specification: -> DW_TAG_structure_type<br class="">         >> > > > > > DW_AT_name: S<int><br class="">         >> > > > > ><br class="">         >> > > > > > This way the canonical type is kept in the debug<br class="">        information, and the<br class="">         >> > > > > > declaration type is a real class type aliasing the<br class="">        canonical type. But I’m<br class="">         >> > > > > > not sure debuggers can digest this kind of aliasing.<br class="">         >> > > > > ><br class="">         >> > > > > > Fred<br class="">         >> > > > ><br class="">         >> > > > > Why introduce the extra typedef? S<A> should have a<br class="">        template parameter<br class="">         >> > > > > entry pointing to A which points to int. The info<br class="">        should all be there<br class="">         >> > > > > without any extra stuff. Or if you think something<br class="">        is missing, please<br class="">         >> > > > > provide a more complete example.<br class="">         >> > > > My immediate concern here would be either loss of<br class="">        information or bloat<br class="">         >> > > > when using that with type units (either bloat because<br class="">        each instantiation<br class="">         >> > > > with differently spelled (but identical) parameters is<br class="">        treated as a separate<br class="">         >> > > > type - or loss when the types are considered the same<br class="">        and all but one are<br class="">         >> > > > dropped at link time)<br class="">         >> > > You'll need to unpack that more because I'm not<br class="">        following the concern.<br class="">         >> > > If the typedefs are spelled differently, don't they<br class="">        count as different types?<br class="">         >> > > DWARF wants to describe the program as-written, and<br class="">        there's no S<int> written<br class="">         >> > > in the program.<br class="">         >> > ><br class="">         >> > > Maybe not in this TU, but possibly in another TU? Or by<br class="">        the user.<br class="">         >> > ><br class="">         >> > > void func(S<int>);<br class="">         >> > > ...<br class="">         >> > > typedef int A;<br class="">         >> > > S<A> s;<br class="">         >> > > func(s); // calls the same function<br class="">         >> > ><br class="">         >> > > The user probably wants to be able to call void func<br class="">        with S<int> or S<A><br class="">         >> > Sure.<br class="">         >> ><br class="">         >> > > (and, actually, in theory, with S<B> where B is another<br class="">        typedef of int, but<br class="">         >> > > that'll /really/ require DWARF consumer support and/or<br class="">        new DWARF wording).<br class="">         >> ><br class="">         >> > Not DWARF wording. DWARF doesn't say when you can and<br class="">        can't call something;<br class="">         >> > that's a debugger feature and therefore a debugger decision.<br class="">         >> ><br class="">         >> What I mean is we'd need some new DWARF to help explain<br class="">        which types are<br class="">         >> equivalent (or the debugger would have to do a lot of<br class="">        spelunking to try<br class="">         >> to find structurally equivalent types - "S<B>" and "S<A>",<br class="">        go look through<br class="">         >> their DW_TAG_template_type_params, see if they are typedefs<br class="">        to the same<br class="">         >> underlying type, etc... )<br class="">         >> ><br class="">         >> ><br class="">         >> > > We can't emit these as completely independent types - it<br class="">        would be verbose<br class="">         >> > > (every instantiation with different typedefs would be a<br class="">        whole separate type<br class="">         >> > > in the DWARF, not deduplicated by type units, etc) and wrong<br class="">         >> ><br class="">         >> > Yes, "typedef int A;" creates a synonym/alias not a new<br class="">        type, so S<A> and S<int><br class="">         >> > describe the same type from the C++ perspective, so you<br class="">        don't want two complete<br class="">         >> > descriptions with different names, because that really<br class="">        would be describing them<br class="">         >> > as separate types. What wrinkles my brow is having S<int><br class="">        be the "real"<br class="">         >> > description even though it isn't instantiated that way in<br class="">        the program. I wonder<br class="">         >> > if it should be marked artificial... but if you do<br class="">        instantiate S<int> in another<br class="">         >> > TU then you don't want that. Huh. It also seems weird to<br class="">        have this:<br class="">         >> > DW_TAG_typedef<br class="">         >> > DW_AT_name "S<A>"<br class="">         >> > DW_AT_type -> S<int><br class="">         >> > but I seem to be coming around to thinking that's the most<br class="">        viable way to have<br class="">         >> > a single actual instantiated type, and still have the<br class="">        correct names of things<br class="">         >*mostly* correct; this still loses "A" as the type of the data<br class="">        member.<br class="">         ><br class="">         >For the DW_TAG_template_type_parameter, you mean? No, it wouldn't.<br class="">         ><br class="">         > (as a side note, if you do actually have a data member (or<br class="">        any other mention) of<br class="">         >the template parameter type, neither Clang nor GCC really get<br class="">        that 'right' -<br class="">         >"template<typename T> struct foo { T t; }; foo<int> f;" - in<br class="">        both Clang and GCC,<br class="">         >the type of the 't' member of foo<int> is a direct reference<br class="">        to the "int" DIE, not<br class="">         >to the DW_TAG_template_type_parameter for "T" -> int)<br class=""><br class="">        Huh. And DWARF doesn't say you should point to the<br class="">        template_type_parameter...<br class="">        I thought it did, but no. Okay, so nothing is lost, but it feels<br class="">        desirable<br class="">        to me, that uses of the template parameter should cite it in the<br class="">        DWARF as well.<br class="">        But I guess we can leave that part of the debate for another time.<br class=""><br class="">         ><br class="">         >Crud.<br class="">         >But I haven't come up with a way to get that back without<br class="">        basically instantiating<br class="">         >S<A> and S<int> separately.<br class="">         ><br class="">         >> ><br class="">         >> Yep - it's the only way I can think of giving this<br class="">        information in a way that's<br class="">         >> likely to work with existing consumers. It would probably be<br class="">        harmless to add<br class="">         >> DW_AT_artificial to the DW_TAG_typedef, if that's any help<br class="">        to any debug info<br class="">         >> consumer.<br class="">         ><br class="">         >Hmmm no, S<A> is not the artificial name;<br class="">         ><br class="">         >It's not the artificial name, but it is an artificial typedef.<br class=""><br class="">        If the source only says S<A>, then the entire S<int> description<br class="">        is artificial,<br class="">        because *that's not what the user wrote*. So both the typedef<br class="">        and the class type<br class="">        are artificial. Gah. Let's forget artificial here.<br class=""><br class="">         ><br class="">         >some debuggers treat DW_AT_artificial<br class="">         >as meaning "don't show this to the user."<br class="">         ><br class="">         >In some sense that's what I want - we never wrote the typedef<br class="">        in the source<br class="">         >so I wouldn't want to see it rendered in the "list of<br class="">        typedefs" (or even<br class="">         >probably in the list of types, maybe).<br class="">         ><br class="">         >But S<A> is the name we *do* want to<br class="">         >show to the user.<br class="">         ><br class="">         >Maybe. Sometimes. But there could be many such aliases for the<br class="">        type. (& many<br class="">         >more that were never written in the source code, but are still<br class="">        valid in the<br class="">         >source language (every other typedef of int, every other way<br class="">        to name the int<br class="">         >type (decltype, etc)))<br class=""><br class="">        But you *lose* cases where the typedef is the *same*<br class="">        *everywhere*. And in<br class="">        many cases that typedef is a valuable thing, not the trivial<br class="">        rename we've<br class="">        been bandying about. This is a more real example:<br class=""><br class="">        typedef int int4 __attribute__((ext_vector_type(4)));<br class="">        template<typename T> struct TypeTraits {};<br class="">        template<><br class="">        struct TypeTraits<int4> {<br class="">        static unsigned MysteryNumber;<br class="">        };<br class="">        unsigned TypeTraits<int4>::MysteryNumber = 3U;<br class=""><br class="">        Displaying "TypeTraits<int __attribute__((ext_vector_type(4)))>"<br class="">        is much<br class="">        worse than "TypeTraits<int4>" (and not just because it's shorter).<br class="">        More to the point, having the debugger *complain* when the user says<br class="">        something like "ptype TypeTraits<int4>" is a problem.<br class=""><br class="">        Reducing debug-info size is a worthy goal, but don't degrade the<br class="">        debugging<br class="">        experience to get there.<br class=""><br class="">        I'm not sure which part of what I've said seemed like a<br class="">        suggestion to degrade the debugging experience to minimize debug<br class="">        info size (the proposition that we should use a typedef or other<br class="">        alias on top of the canonical type? It wouldn't cause "ptype<br class="">        TypeTraits<int4>" to complain - indeed for GDB ptyping a typedef<br class="">        gives /exactly/ the same output as if you ptype the underlying<br class="">        type - it doesn't even mention that there's a typedef involved:<br class=""><br class="">        typedef fooA foo<int>;<br class=""><br class="">        (keyboard shortcuts are hard - accidentally sent before I finished)<br class=""><br class="">        (gdb) ptype fooA<br class=""><br class="">        type = struct foo<int> [with T = int] {<br class=""><br class="">        <no data fields><br class=""><br class="">        }<br class=""><br class="">        But in any case, I think what I'm saying boils down to:<br class=""><br class="">        Short of changing debug info consumers, I think the only thing<br class="">        we can do is DW_TAG_typedef. That'll work for existing consumers.<br class=""><br class="">        Anything else will need possibly new DWARF wording, or at least<br class="">        an agreement between a variety of debug info consumers and<br class="">        producers that some new cliche/use of existing DWARF be used to<br class="">        describe these situations.<br class=""><br class="">        I could be wrong - if someone wants to try prototyping the<br class="">        DW_TAG_structure_type proposal Fred had and see if existing<br class="">        debuggers work with that, sure.<br class=""><br class="">        I'm not opposed to someone coming up with a standardizable more<br class="">        descriptive form than DW_TAG_typedef, but that conversation<br class="">        probably needs to happen with the DWARF Committee more than the<br class="">        LLVM community.<br class=""><br class="">        - David<br class=""><br class="">                --paulr<br class=""><br class=""><br class="">                 ><br class="">                 ><br class="">                 >> That said, I'm not opposed to proposing something to<br class="">                DWARF to define some more<br class="">                 >> 'proper' way to describe this.<br class="">                 ><br class="">                 >Yah. I've been thinking about the DW_AT_specification<br class="">                idea too, which would be<br class="">                 >something like this:<br class="">                 > DW_TAG_class_type<br class="">                 > DW_AT_name "S<A>"<br class="">                 > DW_AT_specification -> S<int><br class="">                 ><br class="">                 > DW_TAG_template_type_parameter<br class="">                 > DW_AT_name "T"<br class="">                 > DW_AT_type -> A<br class="">                 ><br class="">                 >The problem with this is you don't know where T is<br class="">                used in the template, so<br class="">                 >you *still* don't know when to use A as the type of<br class="">                "field". Also it's kind<br class="">                 >of an abuse of DW_AT_specification. If we can't get A<br class="">                as the type of "field"<br class="">                 >then the typedef is more straightforward and<br class="">                understandable.<br class="">                 ><br class="">                 >It's still a lot of DWARF to emit for every way the<br class="">                user has named the template<br class="">                 >& I'm not sure how much value it provides - are there<br class="">                use cases you have in mind<br class="">                 >that would benefit from the increased fidelity of<br class="">                knowing which template argument<br class="">                 >corresponds to the way the user wrote the type.<br class="">                 ><br class="">                 > (& what would we emit if the user named the type in<br class="">                some other more exotic way:<br class="">                 >int func(); template<typename T> struct S { }; ...<br class="">                S<decltype(func())> s; )<br class="">                 ><br class="">                 ><br class="">                 >Maybe I'll pop a note to the DWARF committee for a<br class="">                broader set of opinions.<br class="">                 ><br class="">                 >><br class="">                 >> One other open question is then, when, if ever, to<br class="">                reference the DW_TAG_typedef<br class="">                 >> rather than the underlying type? Do we just<br class="">                reference it whenever the user<br class="">                 >> writes using that name?<br class="">                 >><br class="">                 >> void f(S<A>);<br class="">                 >> ...<br class="">                 >> void f(S<B>) { ... }<br class="">                 >><br class="">                 >> etc... (this would be just as possible/we could<br class="">                maybe treat it the same as if<br class="">                 >> the user wrote "void f(A); ... void f(B) { ... }")<br class="">                 ><br class="">                 >That's what I would do, and I think is more conformant<br class="">                to the DWARF spec.<br class="">                 >--paulr<br class="">                 ><br class="">                 >><br class="">                 >> > (because DWARF is all about the name "as it<br class="">                appears in the source program.")<br class="">                 >> ><br class="">                 >> > > (the debugger wouldn't know these are actually<br class="">                the same type so wouldn't<br class="">                 >> > > allow function calls, etc).<br class="">                 >> > ><br class="">                 >> > > - David<br class="">                 >> > ><br class="">                 >> > > ><br class="">                 >> > > ><br class="">                 >> > > > > Jim<br class="">                 >> > > > ><br class="">                 >> > > >> On Sep 8, 2014, at 12:38 PM, Frédéric Riss<o:p class=""></o:p></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">                <<a href="mailto:friss@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">friss@apple.com</a><span class="Apple-converted-space"> </span><mailto:<a href="mailto:friss@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">friss@apple.com</a>>> wrote:<br class="">                 >> > > >><br class="">                 >> > > >><br class="">                 >> > > >>> On 08 Sep 2014, at 19:31, Greg Clayton<o:p class=""></o:p></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">                <<a href="mailto:gclayton@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">gclayton@apple.com</a><span class="Apple-converted-space"> </span><mailto:<a href="mailto:gclayton@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">gclayton@apple.com</a>>> wrote:<br class="">                 >> > > >>><br class="">                 >> > > >>> This means you will see "S<A>" as the type<br class="">                for your variables in the<br class="">                 >> > > debugger when you view variables or children of<br class="">                structs/unions/classes. I<br class="">                 >> > > think this is not what the user would want to<br class="">                see. I would rather see<br class="">                 >> > > "S<int>" as the type for my variable than see<br class="">                "S<A>”.<br class="">                 >> > > >><br class="">                 >> > > >> I find it more accurate for the debugger to<br class="">                report what has actually<br class="">                 >> > > been put in the code. Moreover when a typedef is<br class="">                used, it’s usually to<br class="">                 >> > > make things more readable not to hide<br class="">                information, thus I guess it would<br class="">                 >> > > usually be as informative while being more<br class="">                compact. The debugger needs to<br class="">                 >> > > have a way to describe the real type behind the<br class="">                abbreviated name though,<br class="">                 >> > > we must not have less information compared to<br class="">                what we have today.<br class="">                 >> > > >><br class="">                 >> > > >> Another point: this allows the debugger to<br class="">                know what S<A> actually is.<br class="">                 >> > > Without it, the debugger only knows the<br class="">                canonical type. This means that<br class="">                 >> > > currently you can’t copy/paste a piece of code<br class="">                that references that kind<br class="">                 >> > > of template names and have it parse correctly. I<br class="">                /think/ that having this<br class="">                 >> > > information in the debug info will allow more of<br class="">                this to work.<br class="">                 >> > > >><br class="">                 >> > > >> But we can agree to disagree :-) It would be<br class="">                great to have more people<br class="">                 >> > > chime and give their opinion.<br class="">                 >> > > >><br class="">                 >> > > >> Fred<br class="">                 >> > > >><br class="">                 >> > > >>>> On Sep 5, 2014, at 4:00 PM, Adrian Prantl<o:p class=""></o:p></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">                <<a href="mailto:aprantl@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">aprantl@apple.com</a><span class="Apple-converted-space"> </span><mailto:<a href="mailto:aprantl@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">aprantl@apple.com</a>>> wrote:<br class="">                 >> > > >>>><br class="">                 >> > > >>>><br class="">                 >> > > >>>>> On Sep 5, 2014, at 3:49 PM, Eric<br class="">                Christopher <<a href="mailto:echristo@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">echristo@gmail.com</a><span class="Apple-converted-space"> </span><mailto:<a href="mailto:echristo@gmail.com" target="_blank" style="color: purple; text-decoration: underline;" class="">echristo@gmail.com</a>>><br class="">                 >> > > wrote:<br class="">                 >> > > >>>>><br class="">                 >> > > >>>>><br class="">                 >> > > >>>>><br class="">                 >> > > >>>>><br class="">                 >> > > >>>>> On Fri, Sep 5, 2014 at 3:43 PM, Duncan P.<br class="">                N. Exon Smith<br class="">                 >> > > <<a href="mailto:dexonsmith@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dexonsmith@apple.com</a><br class="">                <mailto:<a href="mailto:dexonsmith@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">dexonsmith@apple.com</a>>> wrote:<br class="">                 >> > > >>>>><br class="">                 >> > > >>>>>> On 2014 Sep 5, at 16:01, Frédéric Riss<o:p class=""></o:p></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">                <<a href="mailto:friss@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">friss@apple.com</a><span class="Apple-converted-space"> </span><mailto:<a href="mailto:friss@apple.com" target="_blank" style="color: purple; text-decoration: underline;" class="">friss@apple.com</a>>> wrote:<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> I couldn’t even find a subject expressing<br class="">                exactly what this patch<br class="">                 >> > > is about… First of all, it’s meant to start a<br class="">                discussion, and I’m not<br class="">                 >> > > proposing it for inclusion right now.<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> The issue I’m trying to address is that<br class="">                template types are always<br class="">                 >> > > canonicalized when emitted in the debug<br class="">                information (this is the desugar()<br class="">                 >> > > call in UnwrapTypeForDebugInformation).<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> This means that if the developer writes:<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> typedef int A;<br class="">                 >> > > >>>>>> template <typename T><br class="">                 >> > > >>>>>> struct S {};<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> S<A> var;<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> The variable var will have type S<int><br class="">                and not S<A>. In this simple<br class="">                 >> > > example, it’s not that much of an issue, but for<br class="">                heavily templated code,<br class="">                 >> > > the full expansion might be really different<br class="">                from the original<br class="">                 >> > > declaration.<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> The attached patch makes us emit an<br class="">                intermediate typedef for the<br class="">                 >> > > variable’s type:<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> 0x0000002a: DW_TAG_variable [2]<br class="">                 >> > > >>>>>> DW_AT_name [DW_FORM_strp] (<br class="">                 >> > > .debug_str[0x00000032] = “var")<br class="">                 >> > > >>>>>> DW_AT_type [DW_FORM_ref4] (cu + 0x0040 =><br class="">                 >> > > {0x00000040})<br class="">                 >> > > >>>>>> DW_AT_external [DW_FORM_flag] (0x01)<br class="">                 >> > > >>>>>> DW_AT_decl_file [DW_FORM_data1] (0x01)<br class="">                 >> > > >>>>>> DW_AT_decl_line [DW_FORM_data1] (8)<br class="">                 >> > > >>>>>> DW_AT_location [DW_FORM_block1] (<0x09><br class="">                03 70 6c 00 00<br class="">                 >> > > 00 00 00 00 )<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> 0x00000040: DW_TAG_typedef [3]<br class="">                 >> > > >>>>>> DW_AT_type [DW_FORM_ref4] (cu + 0x004b =><br class="">                 >> > > {0x0000004b})<br class="">                 >> > > >>>>>> DW_AT_name [DW_FORM_strp] (<br class="">                 >> > >.debug_str[0x00000035] = “S<A>")<br class="">                 >> > > >>>>>> DW_AT_decl_file [DW_FORM_data1] (0x01)<br class="">                 >> > > >>>>>> DW_AT_decl_line [DW_FORM_data1] (6)<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> 0x0000004b: DW_TAG_structure_type [4] *<br class="">                 >> > > >>>>>> DW_AT_name [DW_FORM_strp] (<br class="">                 >> > >.debug_str[0x0000003e] = “S<int>")<br class="">                 >> > > >>>>>> DW_AT_byte_size [DW_FORM_data1] (0x01)<br class="">                 >> > > >>>>>> DW_AT_decl_file [DW_FORM_data1] (0x01)<br class="">                 >> > > >>>>>> DW_AT_decl_line [DW_FORM_data1] (6)<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> Which basically is what I want, although<br class="">                I don’t like that it<br class="">                 >> > > introduces a typedef where there is none in the<br class="">                code. I’d prefer that to<br class="">                 >> > > be:<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> DW_TAG_variable<br class="">                 >> > > >>>>>> DW_AT_type: -> DW_TAG_structure_type<br class="">                 >> > > >>>>>> DW_AT_name: S<A><br class="">                 >> > > >>>>>> DW_AT_specification: -> DW_TAG_structure_type<br class="">                 >> > > >>>>>> DW_AT_name: S<int><br class="">                 >> > > >>>>>> …<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> The patch also has the nice property of<br class="">                omitting the defaulted<br class="">                 >> > > template arguments in the first level typedef.<br class="">                For example you get<br class="">                 >> > > vector<A> instead of vector<int,<br class="">                std::__1::allocator<int> >.<br class="">                 >> > > >>>>><br class="">                 >> > > >>>>> If you specify `vector<int>` in C++ do you<br class="">                get that instead of<br class="">                 >> > > >>>>> `vector<int, std::__1::allocator<int>>`?<br class="">                 >> > > >>>>><br class="">                 >> > > >>>>> Yeah, I mentioned this as possibly causing<br class="">                problems with debuggers<br class="">                 >> > > or other consumers, but I don't have any proof<br class="">                past "ooooo scary!”.<br class="">                 >> > > >>>><br class="">                 >> > > >>>> Well, [+lldb-dev], could this confuse<br class="">                debuggers? :-)<br class="">                 >> > > >>>><br class="">                 >> > > >>>> -- adrian<br class="">                 >> > > >>>>><br class="">                 >> > > >>>>> That said, I like the idea personally :)<br class="">                 >> > > >>>>><br class="">                 >> > > >>>>> -eric<br class="">                 >> > > >>>>><br class="">                 >> > > >>>>><br class="">                 >> > > >>>>>> Now there is one thing I really don’t<br class="">                like about the patch. In<br class="">                 >> > > order not to emit typedefs for types that don’t<br class="">                need it, I use string<br class="">                 >> > > comparison between the desugared and the<br class="">                original type. I haven’t<br class="">                 >> > > quantified anything, but doing the construction<br class="">                of the type name for every<br class="">                 >> > > template type and then comparing it to decide to<br class="">                use it or not seems like<br class="">                 >> > > a big waste.<br class="">                 >> > > >>>>><br class="">                 >> > > >>>>> Maybe someone on cfe-dev knows a better way.<br class="">                 >> > > >>>>><br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> Thoughts?<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> <template-arg-typedefs.diff><br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>> Fred<br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>><br class="">                 >> > > >>>>>><br class="">                _______________________________________________<br class="">                 >> > > >>>>>> llvm-commits mailing list<br class="">                 >> > > >>>>>><span class="Apple-converted-space"> </span><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a><o:p class=""></o:p></div></div></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class="">                <mailto:<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a>><br class="">                 >> > > >>>>>><br class="">               <span class="Apple-converted-space"> </span><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank" style="color: purple; text-decoration: underline;" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br class="">                 >> > > >>>>><br class="">                 >> > > >>>>><br class="">                 >> > > >>>><br class="">                 >> > > >>>> _______________________________________________<br class="">                 >> > > >>>> lldb-dev mailing list<br class="">                 >> > > >>>><span class="Apple-converted-space"> </span><a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a><br class="">                <mailto:<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a>><br class="">                 >> > > >>>><br class="">               <span class="Apple-converted-space"> </span><a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank" style="color: purple; text-decoration: underline;" class="">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br class="">                 >> > > >>><br class="">                 >> > > >><br class="">                 >> > > >><br class="">                 >> > > >> _______________________________________________<br class="">                 >> > > >> lldb-dev mailing list<br class="">                 >> > > >><span class="Apple-converted-space"> </span><a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a><br class="">                <mailto:<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a>><br class="">                 >> > > >><br class="">               <span class="Apple-converted-space"> </span><a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank" style="color: purple; text-decoration: underline;" class="">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br class="">                 >> > > ><br class="">                 >> > ><br class="">                 >> > ><br class="">                 >> > > _______________________________________________<br class="">                 >> > > llvm-commits mailing list<br class="">                 >> > ><span class="Apple-converted-space"> </span><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a><br class="">                <mailto:<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a>><br class="">                 >> > ><br class="">               <span class="Apple-converted-space"> </span><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank" style="color: purple; text-decoration: underline;" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br class="">                 >> ><br class="">                 >> > _______________________________________________<br class="">                 >> > llvm-commits mailing list<br class="">                 >> ><span class="Apple-converted-space"> </span><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a><br class="">                <mailto:<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a>><br class="">                 >> ><br class="">               <span class="Apple-converted-space"> </span><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank" style="color: purple; text-decoration: underline;" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br class=""><br class=""><br class="">    _______________________________________________<br class="">    lldb-dev mailing list<br class="">   <span class="Apple-converted-space"> </span><a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a><span class="Apple-converted-space"> </span><mailto:<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">lldb-dev@cs.uiuc.edu</a>><br class="">   <span class="Apple-converted-space"> </span><a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank" style="color: purple; text-decoration: underline;" class="">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br class=""><br class=""><br class=""><br class="">_______________________________________________<br class="">llvm-commits mailing list<br class=""><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a><br class=""><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank" style="color: purple; text-decoration: underline;" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><o:p class=""></o:p></div><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><br class="">_______________________________________________<br class="">llvm-commits mailing list<br class=""><a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank" style="color: purple; text-decoration: underline;" class="">llvm-commits@cs.uiuc.edu</a><br class=""><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank" style="color: purple; text-decoration: underline;" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><o:p class=""></o:p></div></div></div></blockquote></div><div style="border-style: none none none solid; border-left-color: blue; border-left-width: 1.5pt; padding: 0in 0in 0in 4pt;" class=""><div class=""><div class=""><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""> <o:p class=""></o:p></div></div></div></div></div></div></div></div></blockquote></div><div style="margin: 0in 0in 0.0001pt; font-size: 12pt; font-family: 'Times New Roman', serif;" class=""><o:p class=""> </o:p></div></div></div></div></div><span style="font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">_______________________________________________</span><br style="font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">llvm-commits mailing list</span><br style="font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="mailto:llvm-commits@cs.uiuc.edu" class="">llvm-commits@cs.uiuc.edu</a></span><br style="font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-family: Menlo-Regular; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class=""><a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" class="">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a></span></div></blockquote></div><br class=""></body></html>