[LLVMdev] Why -jit-emit-debug doesn't work with gdb-7.1 ?
yuri at rawbw.com
Mon Jun 21 17:14:39 PDT 2010
On 06/21/2010 14:14, Reid Kleckner wrote:
> Since FreeBSD is an ELF target, this should work fine. I've also
> tested that this works in 32-bit by building gdb and llvm in 32-bit
> mode and testing this stuff while running on a 64-bit OS.
> I would try setting a breakpoint in gdb on
> 'llvm::JITDebugRegisterer::RegisterFunction' to see that it is being
> called, and that getELFWriterInfo returns something. If that function
> actually installs the code entry, then it's a gdb problem.
I am on FreeBSD and gdb-7.1 seems to be broken. It fails to set
breakpoints in shared libs. using symbol-file causes this message:
(gdb) symbol-file /usr/local/llvm/svn-r105825.dbg/lib/libLLVM-2.8svn.so
Load new symbol table from
"/usr/local/llvm/svn-r105825.dbg/lib/libLLVM-2.8svn.so"? (y or n) y
Reading symbols from /usr/local/llvm/svn-r105825.dbg/lib/libLLVM-2.8svn.so...done.
Unable to read JIT descriptor from remote memory!
Googling this message leads back to your name :-) Do you know why might
it fail to load JIT descriptor?
I filed gdb PR: http://sourceware.org/bugzilla/show_bug.cgi?id=11737
More information about the llvm-dev