about lldb status on windows

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 [:]

lldb

gdb-remote [:]
target create -d
add-dsym -s
process launch -s
breakpoint set -f -l ; failure
thread step-in; crash

May I ask what is the reason, what should be done?

thanks!
qin.

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

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

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.

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.

I think you’ll need something newer. I’m working at the tip of the tree, and it works for me.

thanks.
problem has been solved after Update to the latest .

Encountered a new problem, use the “thread backtrace” and “thread step-in” to cause a crash. Before using these commands, whether pre-conditions?

thanks.

发件人: Adrian McCarthy
发送时间: 2015-06-18 22:51
收件人: haifeng.qin
抄送: lldb-dev; Pavel Labath
主题: Re: Re: [lldb-dev] about lldb status on windows

I think you’ll need something newer. I’m working at the tip of the tree, and it works for me.

There are still many bugs to be fixed and features that aren’t fully implemented.