3

LLVM debugger (lldb) uses a source file for debugging (e.g. for breakpoint). I want to use lldb without having source files, only with intermediate representation files (.ll files).

Is it possible? If not, can I do that with gdb debugger? Is there another idea?

1
  • This should probably be migrated to SO.
    – slm
    Commented Aug 22, 2014 at 16:06

1 Answer 1

0

I'm not sure you can debug using the IR, but in the worst case, you can always just debug the bare assembly without symbols of any kind. Having at least function labels is nice, though.

1
  • For there to be debugging info in the IR, it needs to be explicitly added as metadata. There's nothing implicit in IR… Commented Dec 24, 2015 at 13:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.