This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Version mismatch libpthread/libthread_db
> Or attach to gdbserver using a native gdb and use "info shared"
>
My mipsel-linux-gnu-gdb shows me
--8><--
info shared
>From To Syms Read Shared Object Library
0x2ab0d230 0x2ab18cd0 Yes /lib/libpthread.so.0
No /lib/libstdc++.so.6
0x2acba440 0x2acd4de0 Yes /lib/libm.so.6
0x2adcbc70 0x2add3e14 Yes /lib/libgcc_s.so.1
0x2ae33500 0x2af29a88 Yes /lib/libc.so.6
No /lib/ld.so.1
^done
--><8--
libstdc++ is linked statically, because somehow the cross-g++ doesn't
support dynamic libs (but that's a separate problem with my toolchain).
The simple solution to this problem seems to be setting
solib-absolute-prefix in GDB to the target prefix; then the mismatch
error is gone. info shared returns
--8><--
info shared
>From To Syms Read Shared Object Library
No /lib/libpthread.so.0
No /lib/libstdc++.so.6
No /lib/libm.so.6
No /lib/libgcc_s.so.1
No /lib/libc.so.6
No /lib/ld.so.1
^done
--><8--
Does this look OK?
Martin