[lldb-dev] about lldb status on windows

haifeng.qin haifeng.qin at wellintech.com
Wed Jun 17 22:48:01 PDT 2015


clang++ prompt can't recognize "-fuse-ld=lld" on windows. clang++ version is 3.6 .

command : 
clang ++ -o hello.exe hello.cpp -g -fuse-ld=lld

Is there a problem with my usage?

thanks.

qin.


发件人: Adrian McCarthy
发送时间: 2015-06-17 23:14
收件人: haifeng.qin
抄送: Pavel Labath; lldb-dev
主题: Re: [lldb-dev] about lldb status on windows
 
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.

On Tue, Jun 16, 2015 at 7:34 PM, haifeng.qin <haifeng.qin at wellintech.com> wrote:
Pavel Labath:

 First of all, thank you for your answers.

What type of file generated debug information output to when build exe file? How to generate? 
I use "clang ++ -o hello.exe hello.cpp -g" command generates a pdb and exe.  pdb and exe file format is fixed, how to store debugging information generated by clang?
 
thanks.

qin.
 
发件人: Pavel Labath
发送时间: 2015-06-16 00:52
收件人: haifeng.qin
抄送: lldb-dev
主题: Re: [lldb-dev] about lldb status on windows
 
Hi,
 
as far as I know, lldb can debug windows applications, but there are a
lot of features missing (support for PDB debug info being the most
serious -- i.e. your exe must be built with clang to have any debug
info). You don't need to use any debug server, just do a "target
create", "process launch".
 
hope that helps,
pl
 
 
On 15 June 2015 at 04:25, haifeng.qin <haifeng.qin at wellintech.com> wrote:
>  hi!
>
>  Ask a few questions:
> 1. LLDB support debug .exe files in the windows?  need to rely on debugger
> Server? Which server for use on windows?
> 2. I use lldb and gdbserver with locally debug .exe file on windows, but
> there is a problem:
> Steps:
>
>      gdbserver:
>      > gdbserver --remote-debug --multi [<hostname>:] <portnum>
>
>      lldb
>      > gdb-remote [<hostname>:] <portnum>
>      > target create -d <filename>
>      > add-dsym -s <symbolsFilename>
>      > process launch -s
>      > breakpoint set -f <sourcefile> -l <linenum>; failure
>      > thread step-in; crash
>
> May I ask what is the reason, what should be done?
>
> thanks!
>
> qin.
>
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>

_______________________________________________
lldb-dev mailing list
lldb-dev at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20150618/bb5d9590/attachment.html>


More information about the lldb-dev mailing list