Hi, have you seen that the go bindings already contain a C wrapper for the DIBuilder class? https://github.com/llvm-mirror/llvm/blob/master/bindings/go/llvm/DIBuilderBindings.h It contains this comment: // FIXME: These bindings shouldn't be Go-specific and should eventually // move to a (somewhat) less stable collection of C APIs for use in // creating bindings of LLVM in other languages. I would also be interested in OCaml bindings for this. Best, Ulrich On 21/04/16 23:07, picflo_2@web.de wrote: > Hi all, > > at the company I currently work for LLVM is used for the backend of a > DSL. Since this DSL is missing a debugger > i was looking into this topic and what would actually be missing to add > the required information to use something like > lldb or gdb or even link it to the Visual Studio MI Debug Engine to > debug the resulting code. If I understand it correctly > the OCaml LLVM bindings only give access to the IRBuilder class and not > the required DIBuilder class? Would it be sufficient > to add at first the C wrapper for the DIBuilder class and then the OCaml > bindings using these C wrapper to add debug information > to the offical LLVM repo to start writing a DSL specific debugger using > OCaml? > > Best regards, > > Florian