From: Bryan R. <br...@ix...> - 2001-01-09 21:10:34
|
kaz Kojima wrote: > Sorry, I've tested it only in pure native environment, i.e. configure, > make and tests were done in linux-sh itself. Is there any way you could send me a static linked binary? I am unable to build gdb in linux-sh itself, and am having trouble with the cross compiled version that I built (using a slightly modified version of kaz Kojima's patch--I have not yet tried yours, Denis): [@(none) bin]# ./gdbtest running foo... foo:0 foo:1 foo:2 foo:3 foo:4 foo:5 foo:6 foo:7 foo:8 foo:9 running bar... bar:10 bar:9 bar:8 bar:7 bar:6 bar:5 bar:4 bar:3 bar:2 bar:1 exiting... [@(none) bin]# ./gdb gdbtest GNU gdb 5.0 Copyright 2000 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "sh-linux-gnu"... (gdb) break bar Breakpoint 1 at 0x4004aa: file foo.c, line 31. (gdb) run Starting program: /bin/gdbtest --- my serial console freezes there, no output from gdbtest is displayed, and the breakpoint is never triggered. However I can still CTRL-Z gdb and kill it... if I run "gdb gdbtest" again it does the same thing, except gdb takes over the console and I am unable to return to the busybox shell--the only way out is a system reset. gdbtest is built -Wall -g -O0 I am using GDB 5.0 with glibc2.1.3, kernel 2.4.0, all built using the old toolchain. GDB is compiled against libtermcap.so.2 which I built from the sources in the HardHat-alike SH4 port at http://linuxsh.sourceforge.net/docs/shrpm.php3 Unless you guys have seen this problem before and know of a fix, I'm going to go ahead and try the new toolchain and GDB patch that Denis supplied, and see how that works out. I have a hunch GDB 5.0 wants a newer glibc/binutils. Thanks again, Bryan -- Bryan Rittmeyer mailto:br...@ix... Ixia Communications 26601 W. Agoura Rd. Calabasas, CA 91302 |