This is the mail archive of the libc-help@sourceware.org mailing list for the glibc 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: Version mismatch libpthread/libthread_db


On Mon, Jul 13, 2009 at 8:07 AM, Martin
Gebert<martin.gebert@alpha-bit.de> wrote:
>
>> Or attach to gdbserver using a native gdb and use "info shared"
>>
>
> My mipsel-linux-gnu-gdb shows me

This isn't the usual name for a native gdb, but as long as it's native
and you're on the target then you're OK.

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

This looks fine as it is. All of the above libraries should be copies
of those you built using your cross-toolchain. I suggest you use
md5sums to verify they match what is on the host.

> libstdc++ is linked statically, because somehow the cross-g++ doesn't
> support dynamic libs (but that's a separate problem with my toolchain).

That's odd.

> 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

You are starting to confuse people here. Which gdb, cross-gdb running
on the host, or native-gdb examining the running gdbserver on the
target?

In general solib-absolute-prefix is only used if you have a multiple
sets of libraries on the host and you want the cross-gdb to select a
different set to debug with.

> --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?

What is this output from, a native gdb connected to the gdbserver
running on the target?

Cheers,
Carlos.


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