LLDB not showing source files and line numbers

General questions regarding the usage of CodeLite
cell
CodeLite Curious
Posts: 3
Joined: Wed Apr 03, 2019 8:50 pm
Genuine User: Yes
IDE Question: C++
Contact:

LLDB not showing source files and line numbers

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: LLDB not showing source files and line numbers

Post by eranif »

I am not sure I understood, does it work from the command line lldb?
Make sure you have read the HOW TO POST thread
cell
CodeLite Curious
Posts: 3
Joined: Wed Apr 03, 2019 8:50 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: LLDB not showing source files and line numbers

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: LLDB not showing source files and line numbers

Post 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!
Make sure you have read the HOW TO POST thread
cell
CodeLite Curious
Posts: 3
Joined: Wed Apr 03, 2019 8:50 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: LLDB not showing source files and line numbers

Post 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.
Post Reply