Page 1 of 1

LLDB not showing source files and line numbers

Posted: Wed Apr 03, 2019 9:52 pm
by cell
I'm using mac 10.14.14 and codelite 12.0.11. When I debug using lldb the relevant file names and line numbers don't show. Commands like

Code: Select all

thread backtrace
and

Code: Select all

frame select
also don't show them. However variables show as normal so lldb finding object files with DWARF info doesn't seem to be a problem.

Code: Select all

source list -f [file-from-my-project] 
works correctly but

Code: Select all

source list -n
only works when I already used source list -f with the file where the symbol is. When using standalone lldb everything works as intended.
screenshot.png

Re: LLDB not showing source files and line numbers

Posted: Fri Apr 05, 2019 12:05 am
by eranif
I am not sure I understood, does it work from the command line lldb?

Re: LLDB not showing source files and line numbers

Posted: Fri Apr 05, 2019 8:21 pm
by cell
It only works from a separate build of lldb I have (from Xcode developer tools I suppose) not included with Codelite. I tested it with both versions because I was not sure if it was something on my end.

Re: LLDB not showing source files and line numbers

Posted: Fri Apr 05, 2019 11:51 pm
by eranif
CodeLite does not use the command line lldb, it links against liblldb.dylib.
Maybe it's time to update the build that comes with CodeLite. Can you please open a feature request?

Thanks!

Re: LLDB not showing source files and line numbers

Posted: Mon Apr 08, 2019 3:55 am
by cell
Sorry for bad communication. I thought that, for some reason, command line might also refer to the console window, but never mind. I downloaded clang version 3.9 and it indeed works with it, so it confirms that the problem is because of codelite's lldb is not being compatible with the latest version of clang. Will open the issue.