Bug 11737 - Can't set breakpoint in the statically linked shared library on FreeBSD-8.0
Summary: Can't set breakpoint in the statically linked shared library on FreeBSD-8.0
Status: UNCONFIRMED
Alias: None
Product: gdb
Classification: Unclassified
Component: gdb (show other bugs)
Version: 7.1
: P2 normal
Target Milestone: 7.1
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-21 22:59 UTC by yuri
Modified: 2010-06-21 23:07 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yuri 2010-06-21 22:59:44 UTC
I am trying to set the breakpoint, when it stops in 'main', but I get this:

(gdb) b JITEmitter.cpp:1296
No source file named JITEmitter.cpp.
Make breakpoint pending on future shared library load? (y or [n]) n

JITEmitter.cpp is recorded as a source of the shared library that is already
loaded by current executable.

gdb-6.1.1 doesn't have this issue.
Comment 1 yuri 2010-06-21 23:07:40 UTC
When I try to load symbols for this library manually, I get an error:

(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!