[LLVMdev] question on the status of debugging symbols

Renato Golin rengolin at systemcall.org
Wed Nov 24 03:15:29 PST 2010


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



More information about the llvm-dev mailing list