This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb/threading under arm-linux


On Mar 13,  1:11pm, Miah Gregory wrote:

> Ok, I managed to build enough of libc 2.2.3 in order to get the required
> libthread_db.so.1 library, and I then installed that in /lib.
> 
> With the 20020305 snapshot, I get all the same problems. Is there a simple
> way to find out whether gdb is trying to use that library?

Find out the GDB's pid and then do ``cat /proc/PID/maps'' (or some such)
to see which libraries are loaded and at which addresses they reside.

Chances are that you'll end up needing to use gdb to debug itself to find
out why the necessary library is not getting loaded, but it's certainly
possible that it's being loaded, but some critical symbol is not being
found by a dlsym() call.  (See Daniel's suggestion.)

BTW, from your glibc build, you should install both libthread_db.so.1 as
well as the corresponding libpthread.so.0.  If you've only installed one
of them, it's possible that there's some mismatch which prevents gdb from
working properly.

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]