<div dir="ltr">That doesn't seem possible with the public API or am I mistaking?</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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Tue, May 6, 2014 at 8:09 PM, Isaiah Norton <<a href="mailto:isaiah.norton@gmail.com">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">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>