<div dir="ltr"><div>The use case is getting the short name for backtraces. There are other options, but I figured it was worth a shot trying to access from the DWARF structure because what we need is already stored there anyway.</div>
<div> </div><div>Thanks,</div><div>Isaiah</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 7, 2014 at 12:24 PM, Alexey Samsonov <span dir="ltr"><<a href="mailto:samsonov@google.com" target="_blank">samsonov@google.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Yeah, public API of DebugInfo library is quite minimalistic. But I agree with Eric - what is the use case for getting unmangled name from DIE?</div>
<div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Tue, May 6, 2014 at 11:21 PM, Keno Fischer <span dir="ltr"><<a href="mailto:kfischer@college.harvard.edu" target="_blank">kfischer@college.harvard.edu</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">That doesn't seem possible with the public API or am I mistaking?</div>
<div><div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, May 7, 2014 at 12:13 AM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div>On Tue, May 6, 2014 at 8:09 PM, Isaiah Norton <<a href="mailto:isaiah.norton@gmail.com" target="_blank">isaiah.norton@gmail.com</a>> wrote:<br>




> Hi,<br>
><br>
> I am looking for a way to get unmangled subprogram names from a<br>
> DWARFContext. The name I want is available in the attribute `DW_AT_name`<br>
> [1], but as far as I can tell this is only returned as a fallback in<br>
> `DWARFDebugInfoEntryMinimal::getSubroutineName` when the linkage name is not<br>
> available [2].<br>
><br>
> If this is not currently possible, is there any interest in adding such<br>
> access to the public DebugInfo API? Perhaps with an additional<br>
> "UnmangledName" option in `DILineInfoSpecifier`.<br>
><br>
> Thanks,<br>
> Isaiah<br>
><br>
> [1]: for example:<br>
><br>
> 0x0001bb00:   DW_TAG_subprogram [2]<br>
>                 DW_AT_MIPS_linkage_name [DW_FORM_strp]  (<br>
> .debug_str[0x00007934] = "julia_vcat4473")<br>
>                 DW_AT_name [DW_FORM_strp]       ( .debug_str[0x00000913] =<br>
> "vcat")<br>
><br>
><br>
> [2]<br>
> <a href="https://github.com/llvm-mirror/llvm/blob/master/lib/DebugInfo/DWARFDebugInfoEntry.cpp#L279-L286" target="_blank">https://github.com/llvm-mirror/llvm/blob/master/lib/DebugInfo/DWARFDebugInfoEntry.cpp#L279-L286</a><br>




><br>
><br>
<br>
</div></div>If you just want the DW_AT_name you should be able to iterate over the<br>
DIEs and pull out the DW_AT_name attribute from all of the subprogram<br>
DIEs. Is there some other use that you're looking for? I'm not quite<br>
sure what you're trying to accomplish.<br>
<br>
-eric<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div dir="ltr"><div>Alexey Samsonov, Mountain View, CA</div></div>
</font></span></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>