[LLVMdev] How to get an LLVM-compiled executable which could be debugged using gdb

Csaba Raduly rcsaba at gmail.com
Tue Jun 14 01:41:56 PDT 2011


Hi,

On Tue, Jun 14, 2011 at 10:55 AM, Qingan Li  wrote:
> Hi,
...
> Since the information from LLVM into gnu as and gnu ld is limited by the
> assemble file, I am confusing with how to transfer the debug information to
> gnu as and gnu ld.
> Could any one help me?

Debug information can be placed in the assembler source. This is what
GCC does; you can see for yourself if you run
gcc -g -save-temps filename.c

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the llvm-dev mailing list