Requesting information about configuring the plugin appropriately.

35 views
Skip to first unread message

Sunny

unread,
Mar 1, 2012, 11:54:24 PM3/1/12
to llvm4eclipsecdt
Hi all
I am currently working on ubuntu using eclipse with this plugin. I am
currently struggling with getting the debugging symbols.
a) The toolchain I use is llvm with clang.
b) I do get all the files and line numbers.
c) I just cant see the local symbols like local variables and method
arguments.
I have looked around the www and have not found anything conclusive
about this.
I wish to know whether this is a known issue or is this some mis-
configuration on my side.

While debugging I get messages like
No symbol "x" in the current context.

My current configuration is
* llvm with clang 3.0
* ubuntu 11.10
* gcc 4.6.1
* gdb 7.3-2011.08
* I am working with c projects not c++.

Please help.

Regards
Sunny

Petri Tuononen

unread,
Mar 2, 2012, 8:04:43 AM3/2/12
to llvm4ec...@googlegroups.com
Hello,

Try disabling linker optimization.
Project properties -> C/C++ Build -> Settings -> LLVM C linker ->
Optimization Options -> Disable Optimization

BR,
Petri

Sunny

unread,
Mar 2, 2012, 11:45:55 AM3/2/12
to llvm4ec...@googlegroups.com
Hi Petri

Thanks for your help.

I tried it but but it did not work.

My configuration is

LLVM Assembler : llvm-as with no options specified

LLVM C Linker : llvm-ld
All Options:
-v -L/usr/lib/gcc/i686-linux-gnu/4.6/ -L/usr/lib/llvm-3.0/lib
-disable-opt -Xlinker='-lrt' -Xlinker='-pthread' -Xlinker='-rdynamic'
-Xlinker='-lcunit' -native

LLVM Clang: clang
All Options:
-DUNITTESTING -DDEBUGGING -O0 -emit-llvm -g3 -fexceptions -Wall -c
-fmessage-length=0 -fprofile-arcs -ftest-coverage

Regards
Sunny

Petri Tuononen

unread,
Mar 9, 2012, 6:59:41 AM3/9/12
to llvm4ec...@googlegroups.com
Hi,

I am sorry I have not had time to investigate this further. I have been
way too busy with other things lately.
However I try to find time next week.

Petri

Reply all
Reply to author
Forward
0 new messages