[Solved] LLDB on 7.0 cannot see string values in debugger

CodeLite installation/troubleshooting forum
AbeOwitz
CodeLite Curious
Posts: 8
Joined: Tue Feb 10, 2015 3:21 am
Genuine User: Yes
IDE Question: c++
Contact:

[Solved] LLDB on 7.0 cannot see string values in debugger

Post by AbeOwitz »

[SOLVED] added -fstandalone-debug to clang compile options.

Hello, I just started learning codelite (and C++), and I'm having a little trouble getting the lldb debugger working.

I've successfully installed 7.0 from git on Arch Linux, and can successfully compile my programs using boost, clang++, etc.


When I pull up the debugger, the string variables don't show up. Instead, I get "error: summary string parsing error"

Integers work fine.

I am able to step through the program, and output is as expected.


Also, when I look at the Trace tab at the bottom, I see:

Code: Select all

15:43:40: Error: can't open file '/home/abe/.codelite/config/lldb.conf' (error 2: No such file or directory)
15:43:41: Error: can't open file '/home/abe/.codelite/config/lldb.conf' (error 2: No such file or directory)
15:43:41: Error: can't open file '/home/abe/.codelite/config/lldb.conf' (error 2: No such file or directory)
15:45:12: Error: can't open file '/home/abe/.codelite/config/lldb.conf' (error 2: No such file or directory)
If I 'touch' the file, the errors go away.


Are these two problems related?

Where can I find out what lldb.conf should contain?

Thanks!
Last edited by AbeOwitz on Fri Feb 13, 2015 12:57 am, edited 3 times in total.
AbeOwitz
CodeLite Curious
Posts: 8
Joined: Tue Feb 10, 2015 3:21 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: LLDB on 7.0 errors

Post by AbeOwitz »

OK, so these are connected. If I go into LLDB settings -> Types, I see:

Code: Select all

type summary add wxString --summary-string "${var.m_impl._M_dataplus._M_p}"
type summary add wxPoint --summary-string "x = ${var.x}, y = ${var.y}"
type summary add wxRect --summary-string "(x = ${var.x}, y = ${var.y}) (width = ${var.width}, height = ${var.height})"
But if I look at the lldb docs, they kinda suggest something more like this:

Code: Select all

type summary add std::string --summary-string "${var%S}" 
Which doesn't seem to work.

However, %T, the object type, and %N, the object's src name, do work.

Bug, or am I doing something wrong?

(BTW, these settings and more are in /home/$HOME/.codelite/config/lldb.conf, so that answers that question.)

Thanks,
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: LLDB on 7.0 errors

Post by eranif »

AbeOwitz wrote:Also, when I look at the Trace tab at the bottom, I see:
CODE: SELECT ALL
15:43:40: Error: can't open file '/home/abe/.codelite/config/lldb.conf' (error 2: No such file or directory)
15:43:41: Error: can't open file '/home/abe/.codelite/config/lldb.conf' (error 2: No such file or directory)
15:43:41: Error: can't open file '/home/abe/.codelite/config/lldb.conf' (error 2: No such file or directory)
15:45:12: Error: can't open file '/home/abe/.codelite/config/lldb.conf' (error 2: No such file or directory)
It turns out that wxFile throws this to the log if the file does not exist, I don't see a reason why, since I perform the check "wxFile::IsOpen" before I actually attempts to read the file content
However, these errors can safely be ignored
AbeOwitz wrote:If I 'touch' the file, the errors go away.
There is no need to do that. If you had changed anything in the LLDB settings dialog, the file would have been created for you.
AbeOwitz wrote:But if I look at the lldb docs, they kinda suggest something more like this:

CODE: SELECT ALL
type summary add std::string --summary-string "${var%S}"


Which doesn't seem to work.

However, %T, the object type, and %N, the object's src name, do work.

Bug, or am I doing something wrong?
Not really a bug. It seems that the ArchLinux build picks a different version of liblldb than the one used on other Linuxs (e.g. Ubuntu, Linux Mint)
For me (Linux Mint 17) the default syntax works out of the box without making any modifications.
Can you run 'ldd /usr/bin/codeite' to see which liblldb is picked?

Eran
Make sure you have read the HOW TO POST thread
AbeOwitz
CodeLite Curious
Posts: 8
Joined: Tue Feb 10, 2015 3:21 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: LLDB on 7.0 errors

Post by AbeOwitz »

Thanks, Eran,

Code: Select all

ldd /usr/bin/codelite
	linux-vdso.so.1 (0x00007fff8d90a000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007fa3b0b54000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007fa3b0903000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x00007fa3b06dd000)
	libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007fa3b0366000)
	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007fa3b0164000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007fa3aff60000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00007fa3afd3b000)
	libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007fa3afa0b000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x00007fa3af7bf000)
	libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00007fa3af5b2000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00007fa3af39c000)
	libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x00007fa3af193000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00007fa3aeede000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00007fa3ae89b000)
	libwx_gtk2u_aui-3.0.so.0 => /usr/lib/libwx_gtk2u_aui-3.0.so.0 (0x00007fa3ae5f8000)
	libwx_gtk2u_propgrid-3.0.so.0 => /usr/lib/libwx_gtk2u_propgrid-3.0.so.0 (0x00007fa3ae301000)
	libwx_gtk2u_stc-3.0.so.0 => /usr/lib/libwx_gtk2u_stc-3.0.so.0 (0x00007fa3adec0000)
	libwx_gtk2u_ribbon-3.0.so.0 => /usr/lib/libwx_gtk2u_ribbon-3.0.so.0 (0x00007fa3adc29000)
	libwx_gtk2u_xrc-3.0.so.0 => /usr/lib/libwx_gtk2u_xrc-3.0.so.0 (0x00007fa3ad884000)
	libwx_gtk2u_webview-3.0.so.0 => /usr/lib/libwx_gtk2u_webview-3.0.so.0 (0x00007fa3ad662000)
	libwx_gtk2u_html-3.0.so.0 => /usr/lib/libwx_gtk2u_html-3.0.so.0 (0x00007fa3ad375000)
	libwx_gtk2u_qa-3.0.so.0 => /usr/lib/libwx_gtk2u_qa-3.0.so.0 (0x00007fa3ad143000)
	libwx_gtk2u_adv-3.0.so.0 => /usr/lib/libwx_gtk2u_adv-3.0.so.0 (0x00007fa3acd36000)
	libwx_gtk2u_core-3.0.so.0 => /usr/lib/libwx_gtk2u_core-3.0.so.0 (0x00007fa3ac469000)
	libwx_baseu_xml-3.0.so.0 => /usr/lib/libwx_baseu_xml-3.0.so.0 (0x00007fa3ac258000)
	libwx_baseu_net-3.0.so.0 => /usr/lib/libwx_baseu_net-3.0.so.0 (0x00007fa3ac006000)
	libwx_baseu-3.0.so.0 => /usr/lib/libwx_baseu-3.0.so.0 (0x00007fa3abb4a000)
	libclang.so => /usr/lib64/codelite/libclang.so (0x00007fa3aa849000)
	libwxsqlite3.so => /usr/lib64/codelite/libwxsqlite3.so (0x00007fa3aa57d000)
	liblibcodelite.so => /usr/lib64/codelite/liblibcodelite.so (0x00007fa3a9ffe000)
	libplugin.so => /usr/lib64/codelite/libplugin.so (0x00007fa3a99a6000)
	libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fa3a97a2000)
	libutil.so.1 => /usr/lib/libutil.so.1 (0x00007fa3a959f000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007fa3a9290000)
	libm.so.6 => /usr/lib/libm.so.6 (0x00007fa3a8f8b000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fa3a8d75000)
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fa3a8b58000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007fa3a87b5000)
	libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007fa3a8546000)
	libffi.so.6 => /usr/lib/libffi.so.6 (0x00007fa3a833d000)
	libz.so.1 => /usr/lib/libz.so.1 (0x00007fa3a8127000)
	libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007fa3a7f10000)
	libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007fa3a7cda000)
	libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x00007fa3a7a2d000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007fa3a77f0000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007fa3a7530000)
	libEGL.so.1 => /usr/lib/libEGL.so.1 (0x00007fa3a7306000)
	libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0x00007fa3a7102000)
	libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x00007fa3a6ef8000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007fa3a6cd6000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007fa3a6acc000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x00007fa3a678a000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x00007fa3a6578000)
	libGL.so.1 => /usr/lib/libGL.so.1 (0x00007fa3a62de000)
	librt.so.1 => /usr/lib/librt.so.1 (0x00007fa3a60d6000)
	libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007fa3a5e7d000)
	libXft.so.2 => /usr/lib/libXft.so.2 (0x00007fa3a5c67000)
	libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00007fa3a5a64000)
	libXi.so.6 => /usr/lib/libXi.so.6 (0x00007fa3a5853000)
	libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007fa3a5649000)
	libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007fa3a543e000)
	libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x00007fa3a523b000)
	libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007fa3a5038000)
	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007fa3a4e32000)
	libwebkitgtk-1.0.so.0 => /usr/lib/libwebkitgtk-1.0.so.0 (0x00007fa3a2c82000)
	libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00007fa3a2a7c000)
	libSM.so.6 => /usr/lib/libSM.so.6 (0x00007fa3a2874000)
	libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007fa3a261a000)
	libtiff.so.5 => /usr/lib/libtiff.so.5 (0x00007fa3a2396000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007fa3a216c000)
	/lib64/ld-linux-x86-64.so.2 (0x00007fa3b0e62000)
	libssh.so.4 => /usr/lib/libssh.so.4 (0x00007fa3a1f1c000)
	libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007fa3a1d0c000)
	libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x00007fa3a1b0a000)
	libxcb-dri2.so.0 => /usr/lib/libxcb-dri2.so.0 (0x00007fa3a1905000)
	libxcb-xfixes.so.0 => /usr/lib/libxcb-xfixes.so.0 (0x00007fa3a16fd000)
	libxcb-shape.so.0 => /usr/lib/libxcb-shape.so.0 (0x00007fa3a14f9000)
	libgbm.so.1 => /usr/lib/libgbm.so.1 (0x00007fa3a12eb000)
	libwayland-client.so.0 => /usr/lib/libwayland-client.so.0 (0x00007fa3a10dc000)
	libwayland-server.so.0 => /usr/lib/libwayland-server.so.0 (0x00007fa3a0eca000)
	libglapi.so.0 => /usr/lib/libglapi.so.0 (0x00007fa3a0ca0000)
	libdrm.so.2 => /usr/lib/libdrm.so.2 (0x00007fa3a0a93000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x00007fa3a088f000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007fa3a0689000)
	libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0x00007fa3a046f000)
	libxcb-dri3.so.0 => /usr/lib/libxcb-dri3.so.0 (0x00007fa3a026c000)
	libxcb-present.so.0 => /usr/lib/libxcb-present.so.0 (0x00007fa3a0069000)
	libxcb-randr.so.0 => /usr/lib/libxcb-randr.so.0 (0x00007fa39fe5b000)
	libxcb-sync.so.1 => /usr/lib/libxcb-sync.so.1 (0x00007fa39fc54000)
	libxshmfence.so.1 => /usr/lib/libxshmfence.so.1 (0x00007fa39fa51000)
	libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007fa39f833000)
	libjavascriptcoregtk-1.0.so.0 => /usr/lib/libjavascriptcoregtk-1.0.so.0 (0x00007fa39ef29000)
	libenchant.so.1 => /usr/lib/libenchant.so.1 (0x00007fa39ed1d000)
	libharfbuzz-icu.so.0 => /usr/lib/libharfbuzz-icu.so.0 (0x00007fa39eb1a000)
	libgstapp-1.0.so.0 => /usr/lib/libgstapp-1.0.so.0 (0x00007fa39e90d000)
	libgstaudio-1.0.so.0 => /usr/lib/libgstaudio-1.0.so.0 (0x00007fa39e6be000)
	libgstfft-1.0.so.0 => /usr/lib/libgstfft-1.0.so.0 (0x00007fa39e4b4000)
	libgstpbutils-1.0.so.0 => /usr/lib/libgstpbutils-1.0.so.0 (0x00007fa39e28c000)
	libgstvideo-1.0.so.0 => /usr/lib/libgstvideo-1.0.so.0 (0x00007fa39e03f000)
	libgstbase-1.0.so.0 => /usr/lib/libgstbase-1.0.so.0 (0x00007fa39dde0000)
	libgstreamer-1.0.so.0 => /usr/lib/libgstreamer-1.0.so.0 (0x00007fa39dacf000)
	libsecret-1.so.0 => /usr/lib/libsecret-1.so.0 (0x00007fa39d87e000)
	libsoup-2.4.so.1 => /usr/lib/libsoup-2.4.so.1 (0x00007fa39d5b1000)
	libxslt.so.1 => /usr/lib/libxslt.so.1 (0x00007fa39d372000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007fa39d00d000)
	libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007fa39cd45000)
	libicui18n.so.54 => /usr/lib/libicui18n.so.54 (0x00007fa39c8ee000)
	libicuuc.so.54 => /usr/lib/libicuuc.so.54 (0x00007fa39c55e000)
	libwebp.so.5 => /usr/lib/libwebp.so.5 (0x00007fa39c2fe000)
	libXt.so.6 => /usr/lib/libXt.so.6 (0x00007fa39c097000)
	libICE.so.6 => /usr/lib/libICE.so.6 (0x00007fa39be7a000)
	libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007fa39bc75000)
	liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007fa39ba4f000)
	libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007fa39b5d5000)
	libicudata.so.54 => /usr/lib/libicudata.so.54 (0x00007fa399bab000)
	libgsttag-1.0.so.0 => /usr/lib/libgsttag-1.0.so.0 (0x00007fa399972000)
	liborc-0.4.so.0 => /usr/lib/liborc-0.4.so.0 (0x00007fa3996ed000)
	libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007fa39940c000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007fa3991fa000)

Code: Select all

yaourt -Ss lldb 
aur/lldb 3.5.1-1 [installed] (6)
    The LLDB Debugger
I've tried to compile LLDB from git, but no luck there...

Thanks again for the help. :)
Last edited by AbeOwitz on Tue Feb 10, 2015 10:02 pm, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: LLDB on 7.0 errors

Post by eranif »

AbeOwitz wrote:I've tried to compile LLDB from git, but I get this:
codelite does not use the command line lldb, it links directly to lldb as a library
ldd /usr/bin/codelite
My bad, you should do

Code: Select all

ldd /usr/bin/codelite-lldb
- this is the actual proxy server that codelite connects to over tcp/ip

Eran
Make sure you have read the HOW TO POST thread
AbeOwitz
CodeLite Curious
Posts: 8
Joined: Tue Feb 10, 2015 3:21 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: LLDB on 7.0 errors

Post by AbeOwitz »

No prob.

Code: Select all

ldd /usr/bin/codelite-lldb
	linux-vdso.so.1 (0x00007fff3f656000)
	liblldb.so => /usr/lib64/codelite/liblldb.so (0x00007f60b4d3e000)
	libwx_gtk2u_aui-3.0.so.0 => /usr/lib/libwx_gtk2u_aui-3.0.so.0 (0x00007f60b4a9b000)
	libwx_gtk2u_propgrid-3.0.so.0 => /usr/lib/libwx_gtk2u_propgrid-3.0.so.0 (0x00007f60b47a4000)
	libwx_gtk2u_stc-3.0.so.0 => /usr/lib/libwx_gtk2u_stc-3.0.so.0 (0x00007f60b4363000)
	libwx_gtk2u_richtext-3.0.so.0 => /usr/lib/libwx_gtk2u_richtext-3.0.so.0 (0x00007f60b3f91000)
	libwx_gtk2u_ribbon-3.0.so.0 => /usr/lib/libwx_gtk2u_ribbon-3.0.so.0 (0x00007f60b3cfa000)
	libwx_gtk2u_xrc-3.0.so.0 => /usr/lib/libwx_gtk2u_xrc-3.0.so.0 (0x00007f60b3955000)
	libwx_gtk2u_webview-3.0.so.0 => /usr/lib/libwx_gtk2u_webview-3.0.so.0 (0x00007f60b3733000)
	libwx_gtk2u_html-3.0.so.0 => /usr/lib/libwx_gtk2u_html-3.0.so.0 (0x00007f60b3446000)
	libwx_gtk2u_qa-3.0.so.0 => /usr/lib/libwx_gtk2u_qa-3.0.so.0 (0x00007f60b3214000)
	libwx_gtk2u_adv-3.0.so.0 => /usr/lib/libwx_gtk2u_adv-3.0.so.0 (0x00007f60b2e07000)
	libwx_gtk2u_core-3.0.so.0 => /usr/lib/libwx_gtk2u_core-3.0.so.0 (0x00007f60b253a000)
	libwx_baseu_xml-3.0.so.0 => /usr/lib/libwx_baseu_xml-3.0.so.0 (0x00007f60b2329000)
	libwx_baseu_net-3.0.so.0 => /usr/lib/libwx_baseu_net-3.0.so.0 (0x00007f60b20d7000)
	libwx_baseu-3.0.so.0 => /usr/lib/libwx_baseu-3.0.so.0 (0x00007f60b1c1b000)
	liblibcodelite.so => /usr/lib64/codelite/liblibcodelite.so (0x00007f60b169c000)
	libplugin.so => /usr/lib64/codelite/libplugin.so (0x00007f60b1044000)
	libwxsqlite3.so => /usr/lib64/codelite/libwxsqlite3.so (0x00007f60b0d78000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007f60b0a69000)
	libm.so.6 => /usr/lib/libm.so.6 (0x00007f60b0764000)
	libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007f60b054e000)
	libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f60b0331000)
	libc.so.6 => /usr/lib/libc.so.6 (0x00007f60aff8e000)
	libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f60afd8a000)
	libutil.so.1 => /usr/lib/libutil.so.1 (0x00007f60afb87000)
	libpython2.7.so.1.0 => /usr/lib/libpython2.7.so.1.0 (0x00007f60af7ba000)
	librt.so.1 => /usr/lib/librt.so.1 (0x00007f60af5b2000)
	libedit.so => /usr/lib/libedit.so (0x00007f60af376000)
	libncurses.so.5 => /usr/lib/libncurses.so.5 (0x00007f60af120000)
	libpanel.so.5 => /usr/lib/libpanel.so.5 (0x00007f60aef1c000)
	libz.so.1 => /usr/lib/libz.so.1 (0x00007f60aed06000)
	/lib64/ld-linux-x86-64.so.2 (0x00007f60b82eb000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0x00007f60ae6c3000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0x00007f60ae40e000)
	libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x00007f60ae1bd000)
	libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x00007f60adeaf000)
	libwebkitgtk-1.0.so.0 => /usr/lib/libwebkitgtk-1.0.so.0 (0x00007f60abcff000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0x00007f60abada000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0x00007f60ab88e000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0x00007f60ab54c000)
	libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0x00007f60ab33f000)
	libcairo.so.2 => /usr/lib/libcairo.so.2 (0x00007f60ab00f000)
	libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0x00007f60aae09000)
	libSM.so.6 => /usr/lib/libSM.so.6 (0x00007f60aac01000)
	libpng16.so.16 => /usr/lib/libpng16.so.16 (0x00007f60aa9cb000)
	libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0x00007f60aa771000)
	libtiff.so.5 => /usr/lib/libtiff.so.5 (0x00007f60aa4ed000)
	libexpat.so.1 => /usr/lib/libexpat.so.1 (0x00007f60aa2c3000)
	libssh.so.4 => /usr/lib/libssh.so.4 (0x00007f60aa073000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0x00007f60a9e4d000)
	libgio-2.0.so.0 => /usr/lib/libgio-2.0.so.0 (0x00007f60a9ad6000)
	libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x00007f60a98d4000)
	libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x00007f60a96d0000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0x00007f60a94ba000)
	libpangoxft-1.0.so.0 => /usr/lib/libpangoxft-1.0.so.0 (0x00007f60a92b1000)
	libncursesw.so.5 => /usr/lib/libncursesw.so.5 (0x00007f60a904c000)
	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0x00007f60a8e46000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x00007f60a8c09000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0x00007f60a89ff000)
	libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0x00007f60a87fc000)
	libXi.so.6 => /usr/lib/libXi.so.6 (0x00007f60a85eb000)
	libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0x00007f60a83e1000)
	libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0x00007f60a81d6000)
	libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0x00007f60a7fd3000)
	libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0x00007f60a7dd0000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0x00007f60a7bbe000)
	libpcre.so.1 => /usr/lib/libpcre.so.1 (0x00007f60a794f000)
	libffi.so.6 => /usr/lib/libffi.so.6 (0x00007f60a7746000)
	libjavascriptcoregtk-1.0.so.0 => /usr/lib/libjavascriptcoregtk-1.0.so.0 (0x00007f60a6e3c000)
	libenchant.so.1 => /usr/lib/libenchant.so.1 (0x00007f60a6c30000)
	libharfbuzz-icu.so.0 => /usr/lib/libharfbuzz-icu.so.0 (0x00007f60a6a2d000)
	libharfbuzz.so.0 => /usr/lib/libharfbuzz.so.0 (0x00007f60a67d4000)
	libgstapp-1.0.so.0 => /usr/lib/libgstapp-1.0.so.0 (0x00007f60a65c7000)
	libgstaudio-1.0.so.0 => /usr/lib/libgstaudio-1.0.so.0 (0x00007f60a6378000)
	libgstfft-1.0.so.0 => /usr/lib/libgstfft-1.0.so.0 (0x00007f60a616e000)
	libgstpbutils-1.0.so.0 => /usr/lib/libgstpbutils-1.0.so.0 (0x00007f60a5f46000)
	libgstvideo-1.0.so.0 => /usr/lib/libgstvideo-1.0.so.0 (0x00007f60a5cf9000)
	libgstbase-1.0.so.0 => /usr/lib/libgstbase-1.0.so.0 (0x00007f60a5a9a000)
	libgstreamer-1.0.so.0 => /usr/lib/libgstreamer-1.0.so.0 (0x00007f60a5789000)
	libsecret-1.so.0 => /usr/lib/libsecret-1.so.0 (0x00007f60a5538000)
	libsoup-2.4.so.1 => /usr/lib/libsoup-2.4.so.1 (0x00007f60a526b000)
	libxslt.so.1 => /usr/lib/libxslt.so.1 (0x00007f60a502c000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x00007f60a4cc7000)
	libGL.so.1 => /usr/lib/libGL.so.1 (0x00007f60a4a2d000)
	libEGL.so.1 => /usr/lib/libEGL.so.1 (0x00007f60a4803000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x00007f60a4543000)
	libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0x00007f60a427b000)
	libicui18n.so.54 => /usr/lib/libicui18n.so.54 (0x00007f60a3e24000)
	libicuuc.so.54 => /usr/lib/libicuuc.so.54 (0x00007f60a3a94000)
	libwebp.so.5 => /usr/lib/libwebp.so.5 (0x00007f60a3834000)
	libXt.so.6 => /usr/lib/libXt.so.6 (0x00007f60a35cd000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0x00007f60a33ab000)
	libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0x00007f60a30fe000)
	libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0x00007f60a2efa000)
	libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0x00007f60a2cf0000)
	libICE.so.6 => /usr/lib/libICE.so.6 (0x00007f60a2ad3000)
	libuuid.so.1 => /usr/lib/libuuid.so.1 (0x00007f60a28ce000)
	liblzma.so.5 => /usr/lib/liblzma.so.5 (0x00007f60a26a8000)
	libcrypto.so.1.0.0 => /usr/lib/libcrypto.so.1.0.0 (0x00007f60a222e000)
	libresolv.so.2 => /usr/lib/libresolv.so.2 (0x00007f60a2017000)
	libXft.so.2 => /usr/lib/libXft.so.2 (0x00007f60a1e01000)
	libicudata.so.54 => /usr/lib/libicudata.so.54 (0x00007f60a03d7000)
	libgraphite2.so.3 => /usr/lib/libgraphite2.so.3 (0x00007f60a01b9000)
	libgsttag-1.0.so.0 => /usr/lib/libgsttag-1.0.so.0 (0x00007f609ff80000)
	liborc-0.4.so.0 => /usr/lib/liborc-0.4.so.0 (0x00007f609fcfb000)
	libgcrypt.so.20 => /usr/lib/libgcrypt.so.20 (0x00007f609fa1a000)
	libgpg-error.so.0 => /usr/lib/libgpg-error.so.0 (0x00007f609f808000)
	libglapi.so.0 => /usr/lib/libglapi.so.0 (0x00007f609f5de000)
	libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0x00007f609f3dc000)
	libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0x00007f609f1c2000)
	libxcb-dri2.so.0 => /usr/lib/libxcb-dri2.so.0 (0x00007f609efbd000)
	libxcb-dri3.so.0 => /usr/lib/libxcb-dri3.so.0 (0x00007f609edba000)
	libxcb-present.so.0 => /usr/lib/libxcb-present.so.0 (0x00007f609ebb7000)
	libxcb-randr.so.0 => /usr/lib/libxcb-randr.so.0 (0x00007f609e9a9000)
	libxcb-xfixes.so.0 => /usr/lib/libxcb-xfixes.so.0 (0x00007f609e7a1000)
	libxcb-shape.so.0 => /usr/lib/libxcb-shape.so.0 (0x00007f609e59d000)
	libxcb-sync.so.1 => /usr/lib/libxcb-sync.so.1 (0x00007f609e396000)
	libxshmfence.so.1 => /usr/lib/libxshmfence.so.1 (0x00007f609e193000)
	libdrm.so.2 => /usr/lib/libdrm.so.2 (0x00007f609df86000)
	libgbm.so.1 => /usr/lib/libgbm.so.1 (0x00007f609dd78000)
	libwayland-client.so.0 => /usr/lib/libwayland-client.so.0 (0x00007f609db69000)
	libwayland-server.so.0 => /usr/lib/libwayland-server.so.0 (0x00007f609d957000)
	libbz2.so.1.0 => /usr/lib/libbz2.so.1.0 (0x00007f609d747000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0x00007f609d543000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x00007f609d33d000)
Thanks again. :)

EDIT: note that /usr/lib64 is a symlink to /usr/lib

Code: Select all

ls -l /usr/lib/codelite/liblldb.*
-rw-r--r-- 1 root root 54082624 Feb  8 21:59 /usr/lib/codelite/liblldb.so

ls -l /usr/lib/liblldb.*         
-rwxr-xr-x 1 root root 52938480 Feb  7 22:30 /usr/lib/liblldb.so
lrwxrwxrwx 1 root root       10 Feb  7 22:31 /usr/lib/liblldb.so.3.5.1 -> liblldb.so
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: LLDB on 7.0 errors

Post by eranif »

The question remains: which version of lldb.so is /usr/lib64/codelite/liblldb.so
It seems as if it is a newer version than the one that _we_ compile and this is probably the root cause of the syntax change

Eran
Make sure you have read the HOW TO POST thread
AbeOwitz
CodeLite Curious
Posts: 8
Joined: Tue Feb 10, 2015 3:21 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: LLDB on 7.0 errors

Post by AbeOwitz »

in /home/abe/src/codelite:

Code: Select all

find . -name liblldb.so
./sdk/lldb/unix/lib/i386/liblldb.so
./sdk/lldb/unix/lib/x86_64/liblldb.so

ls -l ./sdk/lldb/unix/lib/x86_64/liblldb.so
-rw-r--r-- 1 abe abe 54082624 Feb  8 21:59 ./sdk/lldb/unix/lib/x86_64/liblldb.so
This was pulled down by git the other day. I even updated this morning and rebuilt everything.

So, this liblldb.so is the one provided by the codelite source. And its md5sum matches the one in github.

Code: Select all

The raw one downloaded from github:
md5sum /home/abe/Desktop/liblldb.so      
8b0ae17694b2064f506ad1331bd17e8f  /home/abe/Desktop/liblldb.so

The one on my filesystem
md5sum /usr/lib64/codelite/liblldb.so 
8b0ae17694b2064f506ad1331bd17e8f  /usr/lib64/codelite/liblldb.so
(I tried swapping it out for the Arch liblldb.so, but that fails completely.)
Last edited by AbeOwitz on Tue Feb 10, 2015 10:43 pm, edited 1 time in total.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: LLDB on 7.0 errors

Post by eranif »

In this case, I will ask David to have a look (he is the one who is building lldb for Linux)
However, I still don't understand how can this happen, since we are using the same binary (my Linux mint and your ArchLinux) and it works for me...
Eran
Make sure you have read the HOW TO POST thread
AbeOwitz
CodeLite Curious
Posts: 8
Joined: Tue Feb 10, 2015 3:21 am
Genuine User: Yes
IDE Question: c++
Contact:

Re: LLDB on 7.0 errors

Post by AbeOwitz »

No worries, and I really appreciate your help on this. :) I will patiently wait.

In the mean time, I need to learn command line debugging anyway... ;)

I really like codelite so far. :)
Post Reply