Great, this should work with GDB on Linux now! Hope to find the time soon to double-check.
Note that for LLDB we have to fix the second part of this regression (source-level debugging): https://bugs.llvm.org/show_bug.cgi?id=36209 For MachO support on macOS we need to implement `getObjectForDebug()` here: https://code.woboq.org/llvm/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldMachO.cpp.html#_ZNK12_GLOBAL__N_121LoadedMachOObjectInfo17getObjectForDebugERKN4llvm6object10ObjectFileE Best, Stefan On 10/03/2020 09:28, Geoff Levner via llvm-dev wrote: > +1. Once ORC JIT supports debugging and profiling, it will have > everything we need. > > Thanks, Lang! > > > On Mon, Mar 9, 2020 at 9:21 PM Frank Tetzel via llvm-dev > <llvm-...@lists.llvm.org <mailto:llvm-...@lists.llvm.org>> wrote: > > Hi Lang, > > > First: there is a preview patch up at > https://reviews.llvm.org/D75838 > > to enable use of JITEventListeners in RTDyldObjectLinkingLayer. I've > > only done very preliminary testing on it, but was able to debug > > simple JIT'd programs on Linux using the GDB registration listener. > > If you've been wanting to move to ORC but held up by lack of > debugger > > / profiler registration, chime in on the review -- I'd appreciate > > feedback and help with testing. I will also post a bug tomorrow for > > investigating similar (or hopefully better) debugger registration > > functionality for JITLink. > > Does this also include support for PerfEventListener for profiling > with > perf? > > I think, debugging and profiling support is very important for a JIT > engine. I could never get it to work with older LLVM versions. Is > there > example code somewhere available? > > Best regards, > Frank > _______________________________________________ > LLVM Developers mailing list > llvm-...@lists.llvm.org <mailto:llvm-...@lists.llvm.org> > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > > _______________________________________________ > LLVM Developers mailing list > llvm-...@lists.llvm.org > https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev -- https://flowcrypt.com/pub/stefan.graen...@gmail.com
_______________________________________________ lldb-dev mailing list lldb-dev@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev