[LLVMdev] Why -jit-emit-debug doesn't work with gdb-7.1 ?

Reid Kleckner reid.kleckner at gmail.com
Mon Jun 21 18:01:56 PDT 2010

On Mon, Jun 21, 2010 at 5:14 PM, Yuri <yuri at rawbw.com> wrote:
> 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

One thing you could do as a temporary work around is to link with LLVM
statically.  There's already an open bug where if the JIT is in a
shared library, then you cannot run the program twice under gdb
without restarting gdb, which is really annoying.

This affects me, and I do intend to fix it eventually.  I'm not sure
if it's the same as your problem though.


More information about the llvm-dev mailing list