<div dir="ltr">The debug information is actually still in a different format in the .bc file, it is LLVM metadata. I think the best reference for it is here: <a href="https://llvm.org/docs/SourceLevelDebugging.html#ccxx-frontend">https://llvm.org/docs/SourceLevelDebugging.html#ccxx-frontend</a><div><br></div><div>You can dump it just by disassembling the .bc file to textual IR using llvm-dis and examining the !DI* metadata nodes. You will have to run the file through llc to generate an object file to generate actual CodeView or DWARF.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 17, 2018 at 5:09 AM, 陳韋任 via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</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"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font size="2" face="sans-serif">3.) Then I used clang-cl to generate
a .bc file - but now I'm not able to use "llvm-readobj" anymore.
Is there any tool available which can dump this debug information too?</font> <br></blockquote><div><br></div></span><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">.bc is LLVM bitcode [1], not the usual object file. `llvm-readobj` should works only on the latter.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">[1] <a href="https://llvm.org/docs/BitCodeFormat.html" target="_blank">https://llvm.org/docs/<wbr>BitCodeFormat.html</a></div></div><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_-1067655930016447127gmail_signature"><div dir="ltr"><div>Wei-Ren Chen (陳韋任)<br>Homepage: <a href="https://people.cs.nctu.edu.tw/~chenwj" target="_blank">https://people.cs.nctu.edu.tw/<wbr>~chenwj</a></div></div></div>
</font></span></div></div>
<br>______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>