<div dir="ltr">Make sure you're using lld for the link step by adding the option -fuse-ld=lld.  That will preserve the DWARF debug info, which lldb uses.</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 16, 2015 at 7:34 PM, haifeng.qin <span dir="ltr"><<a href="mailto:haifeng.qin@wellintech.com" target="_blank">haifeng.qin@wellintech.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
      <div><span>Pavel Labath</span>:</div>
      <div style="TEXT-INDENT:2em"><br></div>
      <div style="TEXT-INDENT:2em"><span></span> <span style="font-size:10.5pt;line-height:1.5;background-color:window">First of all,</span><span style="font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">thank you for your</span><span style="font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">answers.</span></div><div style="TEXT-INDENT:2em"><span style="font-size:10.5pt;line-height:1.5;background-color:window"><br></span></div><div style="TEXT-INDENT:2em"><span style="font-size:10.5pt;line-height:1.5;background-color:window"><span>What type of file </span></span><span style="font-size:10.5pt;line-height:1.5;background-color:window">generated </span><span style="font-size:10.5pt;line-height:1.5;background-color:window;text-indent:2em">debug information output to </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"><span>when build exe file</span></span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">?</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">How to generate</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">?</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span></div><div style="TEXT-INDENT:2em"><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">I</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> use "</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">clang ++ -o hello.exe hello.cpp -g"</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">command generates</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">a</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">pdb</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">and</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">exe.</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">  </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">pdb</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">and</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">exe</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">file format</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">is</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">fixed</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">,</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">how to store</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">debugging information</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">generated</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window"> by </span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">clang</span><span style="text-indent:2em;font-size:10.5pt;line-height:1.5;background-color:window">?</span></div>
      <div> </div>
      <div>thanks.</div><div><br></div><div>qin.</div><div><span><div style="MARGIN-TOP:10px;MARGIN-LEFT:10px;MARGIN-RIGHT:10px"><div><span style="font-family:宋体;font-size:10.5pt"><div><span style="font-family:宋体;font-size:10.5pt"></span></div></span></div></div></span></div>
      <div> </div>
      <div style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0cm;PADDING-LEFT:0cm;PADDING-RIGHT:0cm;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
      <div style="PADDING-BOTTOM:8px;PADDING-LEFT:8px;PADDING-RIGHT:8px;BACKGROUND:#efefef;COLOR:#000000;FONT-SIZE:12px;PADDING-TOP:8px">
      <div><b>发件人:</b> <a href="mailto:labath@google.com" target="_blank">Pavel Labath</a></div>
      <div><b>发送时间:</b> 2015-06-16 00:52</div>
      <div><b>收件人:</b> <a href="mailto:haifeng.qin@wellintech.com" target="_blank">haifeng.qin</a></div>
      <div><b>抄送:</b> <a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev</a></div>
      <div><b>主题:</b> Re: [lldb-dev] about lldb status on windows</div></div></div><div><div class="h5">
      <div> </div>
      <div><div>Hi,</div>
<div> </div>
<div>as far as I know, lldb can debug windows applications, but there are a</div>
<div>lot of features missing (support for PDB debug info being the most</div>
<div>serious -- i.e. your exe must be built with clang to have any debug</div>
<div>info). You don't need to use any debug server, just do a "target</div>
<div>create", "process launch".</div>
<div> </div>
<div>hope that helps,</div>
<div>pl</div>
<div> </div>
<div> </div>
<div>On 15 June 2015 at 04:25, haifeng.qin <<a href="mailto:haifeng.qin@wellintech.com" target="_blank">haifeng.qin@wellintech.com</a>> wrote:</div>
<div>>  hi!</div>
<div>></div>
<div>>  Ask a few questions:</div>
<div>> 1. LLDB support debug .exe files in the windows?  need to rely on debugger</div>
<div>> Server? Which server for use on windows?</div>
<div>> 2. I use lldb and gdbserver with locally debug .exe file on windows, but</div>
<div>> there is a problem:</div>
<div>> Steps:</div>
<div>></div>
<div>>      gdbserver:</div>
<div>>      > gdbserver --remote-debug --multi [<hostname>:] <portnum></div>
<div>></div>
<div>>      lldb</div>
<div>>      > gdb-remote [<hostname>:] <portnum></div>
<div>>      > target create -d <filename></div>
<div>>      > add-dsym -s <symbolsFilename></div>
<div>>      > process launch -s</div>
<div>>      > breakpoint set -f <sourcefile> -l <linenum>; failure</div>
<div>>      > thread step-in; crash</div>
<div>></div>
<div>> May I ask what is the reason, what should be done?</div>
<div>></div>
<div>> thanks!</div>
<div>></div>
<div>> qin.</div>
<div>></div>
<div>></div>
<div>></div>
<div>> _______________________________________________</div>
<div>> lldb-dev mailing list</div>
<div>> <a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev@cs.uiuc.edu</a></div>
<div>> <a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a></div>
<div>></div>
</div>
      <div></div></div></div></div><br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br></div>