<html><head><meta http-equiv="content-type" content="text/html; charset=UTF-8"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20150619171048040660 { }body { font-size: 10.5pt; font-family: 微软雅黑; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> thanks.</span></div><div><span style="color: rgb(0, 0, 0); font-size: 10.5pt; line-height: 1.5; background-color: rgba(0, 0, 0, 0);"> </span><span class="hps" style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><span class="hps">problem has been solved after </span></span><span class="hps" style="font-size: 10.5pt; line-height: 1.5; background-color: window;">Update to the latest</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;">.</span></div><div><span class="hps" style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span class="hps" style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><span class="hps"><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> </span>Encountered</span> <span class="hps">a new problem</span>, <span class="hps">use the</span> <span class="hps">"thread backtrace"</span> <span class="hps">and</span> <span class="hps">"thread step-in"</span> <span class="hps">to cause</span> <span class="hps">a crash. </span><span class="hps">Before using these</span> <span class="hps">commands</span>, <span class="hps">whether</span> <span class="hps">pre-conditions</span>?<div><br></div><div><span style="color: rgb(0, 0, 0); background-color: rgba(0, 0, 0, 0);"> thanks.</span><br><div> </div>
<div><br></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:amccarth@google.com">Adrian McCarthy</a></div>
<div><b>发送时间:</b> 2015-06-18 22:51</div>
<div><b>收件人:</b> <a href="mailto:haifeng.qin@wellintech.com">haifeng.qin</a></div>
<div><b>抄送:</b> <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev</a>; <a href="mailto:labath@google.com">Pavel Labath</a></div>
<div><b>主题:</b> Re: Re: [lldb-dev] about lldb status on windows</div></div></div>
<div> </div>
<div><div class="FoxDiv20150619171048040660"><div dir="ltr">I think you'll need something newer. I'm working at the tip of the tree, and it works for me.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 17, 2015 at 10:48 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: 0px 0px 0px 2em; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div>
<div>clang++ prompt can't <span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:1.5">recognize "</span><span style="font-size:10.5pt;line-height:1.5;background-color:window">-fuse-ld=lld</span><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:1.5">" on windows. clang++ version is 3.6 .</span></div><div><span style="background-color:rgba(0,0,0,0);font-size:10.5pt;line-height:1.5"><br></span></div><div><span style="text-indent:28px">command : </span></div><div><span style="text-indent:28px">clang ++ -o hello.exe hello.cpp -g </span><span style="font-size:10.5pt;line-height:1.5;background-color:window">-fuse-ld=lld</span></div><div><span style="text-indent:28px"><br></span></div><div><span style="color:rgb(0,0,0);background-color:rgba(0,0,0,0)">Is there a problem with my usage?</span></div>
<div style="TEXT-INDENT:2em"><br></div><div style="TEXT-INDENT:2em">thanks.</div><div style="TEXT-INDENT:2em"><br></div><div style="TEXT-INDENT:2em">qin.</div><div style="TEXT-INDENT:2em"><br></div><div style="TEXT-INDENT:2em"><br></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:amccarth@google.com" target="_blank">Adrian McCarthy</a></div>
<div><b>发送时间:</b> 2015-06-17 23:14</div>
<div><b>收件人:</b> <a href="mailto:haifeng.qin@wellintech.com" target="_blank">haifeng.qin</a></div>
<div><b>抄送:</b> <a href="mailto:labath@google.com" target="_blank">Pavel Labath</a>; <a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">lldb-dev</a></div><div><div class="h5">
<div><b>主题:</b> Re: [lldb-dev] about lldb status on windows</div></div></div></div></div><div><div class="h5">
<div> </div>
<div><div><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: 0px 0px 0px 2em; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: 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>
<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" target="_blank">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>
</div></div>
<div></div></div></div></div></blockquote></div><br></div>
</div></div>
<div></div></div></body></html>