[LLVMdev] question on the status of debugging symbols

Xinfinity xinfinity_a at yahoo.com
Mon Nov 29 07:46:38 PST 2010


Maybe you have to install LLVM in Debug+Assertions mode, not in Release mode.
Alexandra


Renato Golin-4 wrote:
> 
> On 23 November 2010 18:03, Bagel <bagel99 at gmail.com> wrote:
>> Would someone be so kind as to tell me what the status of debugging
>> symbols
>> (DWARF) generated by clang/llvm is?
> 
> Hi Bagel,
> 
> It should be fairly complete...
> 
> 
>> When I generate an executable with "clang -g" followed by "llc -O0" and
>> feed it
>> to gdb, I get "no debugging symbols found".
>>
>> What is the status of lldb on linux?
> 
> Just ran the same thing and got all symbols, can you show your
> specific command line options?
> 
> I did:
> 
> $ clang -S -g -emit-llvm test.c -o test.ll
> $ llc -O0 test.ll -o test.s
> $ gcc test.s -o test
> $ gdb ./test
> 
> Also works:
> 
> $ clang -S -g test.c -o test.s
> $ gcc test.s -o test
> $ gdb ./test
> 
> etc.
> 
> cheers,
> --renato
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> 
> 

-- 
View this message in context: http://old.nabble.com/question-on-the-status-of-debugging-symbols-tp30289999p30331697.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.




More information about the llvm-dev mailing list