Hey guys, I'd need to debug just-in-time compiled code under Mac OS. As predicted, GDB doesn't cope really well with it. The LLVM manual seems to say it's possible to patch GDB under Linux, but there seems to be no option for Mac OS. What can I do? I'd prefer a solution that integrates with Xcode, but I'll manage if it doesn't and I have to run the debugger externally. It's not really related to this mailing list, but is LLDB doing a better job at handling just-in-time compiled code? Félix
I'm assuming you're looking at this document? http://llvm.org/docs/DebuggingJITedCode.html That document should probably be updated to say you need GDB 7.0 or newer, since that's when the feature was released. Most Linux distributions have picked this up, so it should Just Work on Linux. Apple's GDB is stale (6.3 + lots of patches). They've stopped updating the version of GDB they ship with XCode, and now they're spending their time working on LLDB. Reid 2010/7/4 Félix Cloutier <felixcca at yahoo.ca>:> Hey guys, > > I'd need to debug just-in-time compiled code under Mac OS. As predicted, GDB doesn't cope really well with it. The LLVM manual seems to say it's possible to patch GDB under Linux, but there seems to be no option for Mac OS. > > What can I do? I'd prefer a solution that integrates with Xcode, but I'll manage if it doesn't and I have to run the debugger externally. > > It's not really related to this mailing list, but is LLDB doing a better job at handling just-in-time compiled code? > > Félix > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >
Yeah, that's what I read. I downloaded and compiled LLDB and it works okay for what I'm doing (at least it's not going crazy with JIT-compiled functions). Looking forward having this in Xcode. Félix (Sorry for the double mail, Reid. I still suck at clicking 'Reply to All'.) Le 2010-07-06 à 23:28:01, Reid Kleckner a écrit :> I'm assuming you're looking at this document? > http://llvm.org/docs/DebuggingJITedCode.html > > That document should probably be updated to say you need GDB 7.0 or > newer, since that's when the feature was released. Most Linux > distributions have picked this up, so it should Just Work on Linux. > > Apple's GDB is stale (6.3 + lots of patches). They've stopped > updating the version of GDB they ship with XCode, and now they're > spending their time working on LLDB. > > Reid > > 2010/7/4 Félix Cloutier <felixcca at yahoo.ca>: >> Hey guys, >> >> I'd need to debug just-in-time compiled code under Mac OS. As predicted, GDB doesn't cope really well with it. The LLVM manual seems to say it's possible to patch GDB under Linux, but there seems to be no option for Mac OS. >> >> What can I do? I'd prefer a solution that integrates with Xcode, but I'll manage if it doesn't and I have to run the debugger externally. >> >> It's not really related to this mailing list, but is LLDB doing a better job at handling just-in-time compiled code? >> >> Félix >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >>-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100706/6aee5a97/attachment.html>
Reasonably Related Threads
- [LLVMdev] Debug just-in-time compiled code on Mac OS
- [LLVMdev] Can I use Clang to parse snippets of C++ code?
- [LLVMdev] Processing functions in call graph SCC "order" with function-level analyses
- [LLVMdev] MemoryDependenceAnalysis reports dependencies between NoAlias pointers
- [LLVMdev] Hello World