[LLVMdev] Newbie question(?): How to correctly create debug info, when generating IR

Sid Manning sidneym at codeaurora.org
Fri Dec 28 12:19:36 PST 2012

On 12/28/12 11:33, Mario de Sousa wrote:
>   Hello all,
> Summary&  Context:
> -------------------------------
>   I am starting to write a front-end for some domain specific programming
> languages. Code generation seems to be working fine.
>   However, I am having trouble generating debug info, to be used by gdb.

I've has some issues with debug info and it was pointed out to me that 
llvm can emit dwarf4 bits that gdb may not like, this may not help but I 
needed to pass:

-mllvm -use-dwarf3-form-flags

to get output gdb would accept.

>    Cheers,
>            Mario.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, 
hosted by The Linux Foundation

More information about the llvm-dev mailing list