[llvm-dev] LLVM IR Debugger

Brenda So via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 3 23:11:29 PST 2018

interesting ... just curious, why did they delete "-debug-ir" to begin with

Also, it's extremely interesting that gdb and lldb can be used to debug
LLVM IR. How does your code work (on a high level)? A high level
explanation will help me understand what you've done better.

>From first glance, my idea is slight different because your code interfaces
with gdb and lldb while i'm more interested in making the debugger itself
(sort of an extended interpreter).

On Thu, Jan 4, 2018 at 12:32 AM, Siddharth Bhat <siddu.druid at gmail.com>

> You can attach debug info to the Llvm module about LLVM IR, at which point
> one can throw the executable into any debugger and get llvm level debugging.
> I've started a patch to revive this feature (DebugIR pass). I've been
> sidetracked the past month, but I'll come back to it soon :)
> https://reviews.llvm.org/D40778
> Cheers,
> Siddharth
> On Thu 4 Jan, 2018, 09:23 Brenda So via llvm-dev, <llvm-dev at lists.llvm.org>
> wrote:
>> Hi
>> I am looking at open projects that LLVM want to implement and it seems to
>> be a suggestion to write an LLVM IR level debugger. Is there any existing
>> LLVM projects out there that already does such a thing? If not, I would
>> like to try implementing one myself.
>> By debugger, I think it means something like gdb, where you can insert
>> breakpoints, run code and observe layout of registers and memory at certain
>> periods of time.
>> If anyone has suggestions as to how this IR debugger should work please
>> let me know.
>> Thanks!
>> Brenda
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> --
> Sending this from my phone, please excuse any typos!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180104/dcec8028/attachment.html>

More information about the llvm-dev mailing list