Re: LLVM JITLink attempt II (WIP)
| От | Thomas Munro |
|---|---|
| Тема | Re: LLVM JITLink attempt II (WIP) |
| Дата | |
| Msg-id | CA+hUKGKjhxHe24p4-mNrQQ7U6PJnJcsF=Q1AfYwqAc2SqHWdzQ@mail.gmail.com обсуждение исходный текст |
| Ответ на | Re: LLVM JITLink attempt II (WIP) (Thomas Munro <thomas.munro@gmail.com>) |
| Ответы |
Re: LLVM JITLink attempt II (WIP)
|
| Список | pgsql-hackers |
On Sat, Jan 3, 2026 at 4:09 PM Thomas Munro <thomas.munro@gmail.com> wrote: > I still don't know how to enable GDB and Perf support with JITLink... jit_debugging_support may just be just a matter of calling LLVMOrcLLJITEnableDebugSupport()[1], though it looks like it might only work for ELF (the other interesting object format at this stage being macOS's MachO, and in the past/possible future AIX's COFF/XCOFF and eventually Windows COFF/PE), but I'm not sure. You can tell if it's working by making it crash/abort in JITed code and seeing if the stack is decodable by GDB I had been thinking we were going to have to write that function because I'd missed its arrival in LLVM 18[2], d'uh. It sounds like we might need to wait for or write a similar function for perf support. Sorry for drip-feeding incomplete work, but since others expressed an interest in helping :-) [1] https://github.com/llvm/llvm-project/issues/174305#issuecomment-3709546309 [2] https://github.com/llvm/llvm-project/commit/54397f9ac128568838f2ac7bfc8e1f94b3eb264d
В списке pgsql-hackers по дате отправления: