debug-problem with cygwin-linux-cross
Thu Dec 8 16:49:00 GMT 2005
On 12/8/05, Wedde, Thomas <email@example.com> wrote:
> hope that is the right group for my problem:
Here or the gdb mailing list are good.
> I compiled a cross toolchain with crosstools 0.38 (thx Dan !)
> - gcc 3.3.3
> - glibc 3.2.3
> - binutils 2.15
> - host&build: i686-cygwin-linux
> - target : i386-linux-gnu
> Under WinXP with cygwin an it runs without problems.
> After the compilation I was a little confused about the output path
> (C:\cygwin\opt\crosstool\gcc-3.3.3-glibc-2.3.2\i386-unknown-linux-gnu\i386-unknown-linux-gnu\bin -> contained the tools from cygwin
> C:\cygwin\opt\crosstool\gcc-3.3.3-glibc-2.3.2\i386-unknown-linux-gnu\bin -> contained the new toolchain
> was nearly empty but some includefiles where needed so I copied them to
> and so on...)
You shouldn't need to do that... what happens if you don't?
> If I want to debug my application with gdbserver on the target and gdb
> 6.0 on my cygwin host I get several errors:
> warning: Unable to find dynamic linker breakpoint function.
> GDB will be unable to debug shared library initializers
> and track explicitly loaded dynamic code.
> Error while mapping shared library sections:
> /lib/libstdc++.so.5: No such file or directory. ...
> Error while reading shared library symbols:
> Stopped due to shared library event
> /lib/ld-linux.so.2: No such file or directory.
> Reply contains invalid hex digit 78 ...
> Seems that it can not find those libs although they are present (and I
> added the path to them to the linker options)
> I tried to copy them around, for example to cygwin/usr/lib, but this
> doesn't help.
> If I do : i386-unknown-linux-gnu-ld --verbose | grep SEARCH
> The answer is: SEARCH_DIR("=usr/local/lib"); SEARCH_DIOR("=/lib");
Did you read
> Although I can step-trough my program at termination of it, gdb always
> return the "Reply contains invalid hex digit 78" and aborts.
Now *there's* a question you need to take to the gdb mailing list...
Why won't Johnny run Linux? See http://kegel.com/linux/comfort
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to firstname.lastname@example.org
More information about the crossgcc