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

Yuri yuri at rawbw.com
Tue Jul 13 12:42:47 PDT 2010


On 06/21/2010 18:01, Reid Kleckner wrote:
> 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.
>
> Reid
>    

Did you have a chance to fix this issue with gdb failing to debug 
libLLVM-2.8svn.so as a shared lib?
I keep hitting this issue. Older gdb for some reason doesn't see llvm::* 
types which makes debugging difficult. And I can't really link with LLVM 
statically.

Yuri



More information about the llvm-dev mailing list