[Gelistirici] 2009/stable/programming/debug/gdb - gdb-7.0

Faik Uygur faik at pardus.org.tr
9 Eki 2009 Cum 14:33:40 EEST


> glibc-dbginfo paketini kurunca uyarılar ortadan kayboldu. Ama ne kadar
> alakası var bilemiyorum :)
> 

http://sourceware.org/gdb/wiki/FAQ 

altındaki şu madde alakalı gibi:

6. GDB does not see any threads besides the one in which crash occurred; or 
SIGTRAP kills my program when I set a breakpoint.
This frequently happen on Linux, especially on embedded targets. There are two 
common causes:
you are using glibc, and you have stripped libpthread.so.0
mismatch between libpthread.so.0 and libthread_db.so.1
GDB itself does not know how to decode "thread control blocks" maintained by 
glibc and considered to be glibc private implementation detail. It uses 
libhread_db.so.1 (part of glibc) to help it do so. Therefore, 
libthread_db.so.1 and libpthread.so.0 must match in version and compilation 
flags. In addition, libthread_db.so.1 requires certain non-global symbols to 
be present in libpthread.so.0. Solution: use strip --strip-debug 
libpthread.so.0 instead of strip libpthread.so.0.

pisi'de strip ederken fazladan bu bahsettiği "certain non-global symbols" da 
mı strip ediliyor acaba?

- Faik



Gelistirici mesaj listesiyle ilgili daha fazla bilgi