Hi Robert,
This might be a little off topic, but it may help in your situation.
I just verified that the gdbserver/gdb combination in the Freescale
LTIB BSP tool for the M5208EVB function together (see logs at the
end). The LTIB tool is free so you can download it, take the gdb
pieces you need and use them in the uClinux environment or you could
look at the build log and see if that will help you build a working
combination.
<http://www.freescale.com/webapp/sps/site/overview.jsp?nodeId=0127260061033202A9>
Regards,
Matt Waddel
Target side display.
--------------------
# gdbserver :3000 ./test
Process ./test created; pid = 157
Listening on port 3000
Remote debugging from host 172.27.163.2
Hello World!
0
1
2
Child exited with retcode = 2
Child exited with status 2
GDBserver exiting
#
Host side display.
------------------
$ ~/ltib-m520xevb-20060920/bin/gdb ./test.gdb
GNU gdb 6.3.50.20051117
Copyright 2004 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 "--host=i686-pc-linux-gnu --target=m68k-linux"...
(gdb) target remote 172.27.0.146:3000
Remote debugging using 172.27.0.146:3000
0x41000044 in _stext ()
(gdb) l
1 #include <stdio.h>
2
3 main()
4 {
5 int i;
6 printf("Hello World!\n");
7 for (i=0; i<3; i++)
8 printf("%d\n",i);
9 }
(gdb) b 8
Breakpoint 1 at 0x41000120: file test.c, line 8.
(gdb) c
Continuing.
Breakpoint 1, main () at test.c:8
8 printf("%d\n",i);
(gdb) c
Continuing.
Breakpoint 1, main () at test.c:8
8 printf("%d\n",i);
(gdb) c
Continuing.
Breakpoint 1, main () at test.c:8
8 printf("%d\n",i);
(gdb) c
Continuing.
Program exited with code 02.
(gdb)
Robert S. Grimes wrote:
Hi,
Well, talking with a buddy of mine, we've come to the conclusion that
the gdbserver in uClinux-dist-20070130.tar.bz2 needs a specific version
or versions of gdb, though I can't for the life of my figure out what
those versions might be. Doesn't somebody know what to do here?
We also figured a good strategy would be to attempt to build gdbserver
in userland. Searching around a bit, I found some recent postings (how
did I miss these? Oh, yeah, ARM, not ColdFire) here
http://www.mail-archive.com/[email protected]/msg00447.html that
suggests doing just that. I followed the suggestions made by Per
Hallsmark, but failed early in the process, as these errors can attest
make[3]: Entering directory
`/root/polychromix/uClinux/uClinux-dist/user/rsg/gdb'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
mkdir gdb-6.6/build
cd gdb-6.6/build && ../configure --target=m68k-linux --with-sysroot
[ ! -d "shutils" ] || ( touch shutils/.sgbuilt_user && make -j1 -C
shutils ) || exit $?
make[3]: Entering directory
`/root/polychromix/uClinux/uClinux-dist/user/sash'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
make -C libsash
make[4]: Entering directory
`/root/polychromix/uClinux/uClinux-dist/user/sash/libsash'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory
`/root/polychromix/uClinux/uClinux-dist/user/sash/libsash'
make[3]: Leaving directory
`/root/polychromix/uClinux/uClinux-dist/user/sash'
[ ! -d "stty" ] || ( touch stty/.sgbuilt_user && make -j1 -C stty )
|| exit $?
make[3]: Entering directory
`/root/polychromix/uClinux/uClinux-dist/user/rsg/spitest'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/root/polychromix/uClinux/uClinux-dist/user/rsg/spitest'
[ ! -d "sysutils" ] || ( touch sysutils/.sgbuilt_user && make -j1 -C
sysutils ) || exit $?
make[3]: Entering directory
`/root/polychromix/uClinux/uClinux-dist/user/shutils'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/root/polychromix/uClinux/uClinux-dist/user/shutils'
make[3]: Entering directory
`/root/polychromix/uClinux/uClinux-dist/user/stty'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/root/polychromix/uClinux/uClinux-dist/user/stty'
make[3]: Entering directory
`/root/polychromix/uClinux/uClinux-dist/user/sysutils'
make[3]: warning: -jN forced in submake: disabling jobserver mode.
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/root/polychromix/uClinux/uClinux-dist/user/sysutils'
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... m68k-unknown-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc
checking whether the C compiler (gcc -Wl,--fatal-warnings
-Wl,-elf2flt -Wl,-move-rodata -msep-data -Wl,--fatal-warnings
-Wl,-elf2flt -Wl,-move-rodata -msep-data) works... no
configure: error: installation or configuration problem: C compiler
cannot create executables.
make[3]: *** [gdb-6.6/build/Makefile] Error 1
make[3]: Leaving directory
`/root/polychromix/uClinux/uClinux-dist/user/rsg/gdb'
make[2]: *** [rsg/gdb] Error 2
make[2]: Leaving directory `/root/polychromix/uClinux/uClinux-dist/user'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/polychromix/uClinux/uClinux-dist/user'
make: *** [subdirs] Error 1
Hasn't anyone used gdb/gdbserver that can help me?
Thanks!
-Bob
# Glue Makefile for gdb/gdbserver
#
# Author: Per Hallsmark <[EMAIL PROTECTED]>
#
PKG=gdb-6.6
HOST=
HOST_ENV=
CC= CFLAGS=
TGT=m68k-linux
TGT_ENV=
all: build_host build_target
$(PKG)/build/Makefile:
mkdir $(PKG)/build
cd $(PKG)/build && $(HOST_ENV) ../configure --target=$(TGT) \
--with-sysroot
build_host: $(PKG)/build/Makefile
$(MAKE) -C $(PKG)/build
$(PKG)/build-$(TGT)/gdbserver/Makefile:
mkdir -p $(PKG)/build-$(TGT)/gdbserver
cd $(PKG)/build-$(TGT)/gdbserver && \
$(TGT_ENV) ../../gdb/gdbserver/configure --host=$(TGT)
build_target: $(PKG)/build-$(TGT)/gdbserver/Makefile
$(MAKE) -C $(PKG)/build-$(TGT)/gdbserver
romfs:
$(ROMFSINST) $(PKG)/build-$(TGT)/gdbserver/gdbserver /bin/gdbserver
clean:
$(RM) -r $(PKG)/build $(PKG)/build-$(TGT)
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev