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....@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 <lab...@google.com> > *发送时间:* 2015-06-16 00:52 > *收件人:* haifeng.qin <haifeng....@wellintech.com> > *抄送:* lldb-dev <lldb-dev@cs.uiuc.edu> > *主题:* 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....@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@cs.uiuc.edu > > http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev > > > > _______________________________________________ > lldb-dev mailing list > lldb-dev@cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev > >
_______________________________________________ lldb-dev mailing list lldb-dev@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev