[LLVMdev] Debugging of LLVM-IR
jyasskin at google.com
Tue Feb 9 09:45:56 PST 2010
Unfortunately, the current gdb support doesn't include line numbers.
It'll tell you what function it crashed in and the stack trace though.
Line numbers will probably come when the llvm-mc project is merged into the JIT.
On Tue, Feb 9, 2010 at 9:37 AM, Garrison Venn <gvenn.cfe.dev at gmail.com> wrote:
> Are you running this in a JIT? If so this will help: http://llvm.org/docs/DebuggingJITedCode.html.
> On Feb 9, 2010, at 10:33, Sebastian Schlunke wrote:
>> is there any way to debug a program in LLVM-IR line-by-line (i.e. with gdb)?
>> The problem is, i have a program in human-readable-intermediate representation that segfaults, when executed. I want to know, which line in the IR causes this.
>> Any help is appreciated.
>> Best regards,
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
More information about the llvm-dev