From: Denis D. <dp...@pr...> - 2001-01-07 23:46:20
|
First you need to apply all of the patches in sh-gdb-patch.tar.gz to the gdb sources. I am using the following lines to build gdb and gdbserver. It all builds but is not tested yet. # Build gdb-client for cross-debugging ./configure --build i386-linux-gnu --host i386-linux-gnu --target sh-linux-gnu mv gdb/gdb gdb/gdb-client make distclean # Build gdb for native debugging ./configure --build i386-linux-gnu --host sh-linux-gnu --target sh-linux-gnu make # Build gdbserver for cross-debugging cd gdb/gdbserver ../../configure --build i386-linux-gnu --host sh-linux-gnu --target sh-linux-gnu --prefix make CC="sh-linux-gnu -ml -m4" Hope this works for you. Let me know how you get on. Regards, Denis. Bryan Rittmeyer wrote: > > Hello! > > kaz Kojima wrote: > > > About the native gdb, it works but I found some problem. Especially a > > Can you please provide me with the build commands you used to cross > compile a native (sh4) gdb? I.E. What flags did you pass to configure? > Did you have to modify Makefiles by hand? > > I am trying to build sh4 gdb on my x86 linux workstation, but the native > x86 utilities keep getting used instead of the cross utilities, leading > to incorrect object code. > > I am working with the latest GDB CVS sources, with your patch > http://dodo.nurs.or.jp/~kkojima/gnu-on-sh/gdb-cvs-001102.diff.gz > applied. One hunk was rejected due to some format changes, but I applied > it by hand. > > Also, have you attempted to use gdbserver on the SH4? I am going to be > debugging very large applications, which may not fit into the embedded > target unless stripped of debugging symbols. gdbserver works with a > stripped binary on the target and communicates with a master gdb, which > has a non-stripped binary, on a workstation. > > Thank you! > > Regards, > > Bryan > > -- > Bryan Rittmeyer > mailto:br...@ix... > Ixia Communications > 26601 W. Agoura Rd. > Calabasas, CA 91302 > > _______________________________________________ > linuxsh-dev mailing list > lin...@li... > http://lists.sourceforge.net/mailman/listinfo/linuxsh-dev |