[lldb-dev] Code Coverage with GCOV

Vedant Kumar via lldb-dev lldb-dev at lists.llvm.org
Tue Aug 16 10:27:06 PDT 2016

Hi Ravitheja,

Could you show us the diff to your cmake configuration? You may want to take a
look at how the LLVM_BUILD_INSTRUMENTED cmake option is implemented to
double-check that you've got something reasonable (see: llvm/CMakeLists.txt and

Also, you may want to double-check that the gcda files are being written to the
right directory.


> On Aug 16, 2016, at 7:58 AM, Ravitheja Addepally via lldb-dev <lldb-dev at lists.llvm.org> wrote:
> Hello,
>        I was trying to get Code Coverage for LLDB with GCOV on Linux by adding the corresponding flags in the CMake files, but I am facing problem with lldb-server, which does not give seem to generate the gcda files. The host side does generate the gcov files although. The lldb-server does generate the gcov files if it is started in Standalone mode but it does not generate the gcov files if started by LLDB. Has anyone tried this already ? How can I get Code Coverage for lldb / lldb-server on Linux ?
> Best Regards,
> A Ravi Theja
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev

More information about the lldb-dev mailing list