Renato Golin
2011-May-02 20:39 UTC
[LLVMdev] DWARF not being generated for local variable, though MD looks right(?)
On 2 May 2011 17:36, Devang Patel <dpatel at apple.com> wrote:> Here there is not any instruction (ignoring dbg intrinsics) with line number > information. If you add !dbg !7 at the end of 'ret' then it'll work.Hi Devang, Why does type/variable information depend on line information? cheers, --renato
Devang Patel
2011-May-02 21:39 UTC
[LLVMdev] DWARF not being generated for local variable, though MD looks right(?)
On May 2, 2011, at 1:39 PM, Renato Golin wrote:> On 2 May 2011 17:36, Devang Patel <dpatel at apple.com> wrote:> Why does type/variable information depend on line information?You need line number information to map source code to instructions. Otherwise, you'll have a function and variable info in debug info but a debugger won't know which instructions belong to given function and what's the range of a variable. - Devang
Renato Golin
2011-May-02 22:10 UTC
[LLVMdev] DWARF not being generated for local variable, though MD looks right(?)
On 2 May 2011 22:39, Devang Patel <dpatel at apple.com> wrote:> You need line number information to map source code to instructions. Otherwise, you'll have a function and variable info in debug info but a debugger won't know which instructions belong to given function and what's the range of a variable.That can be worked out from the debug_info and debug_loc without requiring debug_line info. (not the instruction vs. function, but all the rest). Not that debuggers do know that, and not that it would be useful for debugging... But I don't see a strong point to intentionally omit them. Just a thought... cheers, --renato
Apparently Analagous Threads
- [LLVMdev] DWARF not being generated for local variable, though MD looks right(?)
- [LLVMdev] DWARF not being generated for local variable, though MD looks right(?)
- [LLVMdev] DWARF not being generated for local variable, though MD looks right(?)
- Fragmented DWARF
- [LLVMdev] DWARF not being generated for local variable, though MD looks right(?)