Re: [lldb-dev] Code Coverage with GCOV

2016-08-17 Thread Vedant Kumar via lldb-dev
Is it possible that the files are written to an unexpected directory? Have you tried running the program under strace/dtruss to conclusively determine whether or not the files are being written? Could you try running lldb-server in lldb and setting a breakpoint on `llvm_gcda_start_file'? vedant >

Re: [lldb-dev] Code Coverage with GCOV

2016-08-17 Thread Ravitheja Addepally via lldb-dev
Hello, I added the following lines to the lldb-server and lldb CMakeLists.txt set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage") I am able to get the lldb-server gcov files when I start

Re: [lldb-dev] Code Coverage with GCOV

2016-08-16 Thread Vedant Kumar via lldb-dev
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 cmake/modules/HandleLLVMOptions.cmake). Also, you may