[LLVMdev] Debugging Status on x86?

Eli Friedman eli.friedman at gmail.com
Thu Aug 5 18:31:30 PDT 2010

On Thu, Aug 5, 2010 at 6:22 PM, Jason Kim <jasonwkim at google.com> wrote:
> Hi everyone,
> I was under the impression that debugging support on llvm-gcc-4.2.1 +
> llvm-2.7 was pretty complete (at least on x86 linux), but ran into a glitch.
> First off, are there any docs that discuss the current state, in so far as
> DWARF support is concerned?
> The behavior I am seeing is the following:
> llvm-gcc -g hello.c -o hello
> produces a working executable with apparently complete debugging support.
> (stepping
> However,
> llvm-gcc -g -c -emit-llvm hello.c -o hello.bc
> llc hello.bc -o hello.s
> llvm-gcc -g hello.s -o hello

Using -g at both levels leads to issues... gcc is trying to add
debugging info to assembly with debugging info.


More information about the llvm-dev mailing list