Hi Paugam Luc,
>I tried to use gdbserver from Kwonsk on my uCsimm module, and i am unable to
>step (from GDB) into a simple test program.
>However, I successfully compiled all the stuff: m68k-unknown-gdb + uCsimm
>gdbserver + add uC-libc ptrace + patch trap #1 on linux kernel.
I am a jackeroo of embedded linux, have less knowledge about cross compilling and
debugging. I tried to make an environment of remote debug, however it is not
successful. Could you do me a favor, introduce the whole process of compiling the
utilities you mentioned above and the process of handling stub.c for debugging kernel.
I have another question: when debug option added while executing m68k-pic-coff-gcc,
it will abort with "could not open -lg", I know I need a library, but where could I
Thanks a lot.
>The host's GDB talk perfectly at initialization with the uCsimm's gdbserver.
>I can view the C code of my test program, i can set breakpoint.
>But when i step 1, i can't stop at the breakpoint. Each time, the test
>program completes its execution.
>Does anyone know why this is happening ?
>PS: while compiling gdbserver, i needed to add low-linux.o into OBJS part in
>the associated Makefile.
> And i also removed the _cleanup fonction from gdbserver/server.c
>because it is already defined into crt0.S (uC-libc).
>Thanks in advance for any help.
>Here are the dumps (gdb & gdbserver) of my try :
>----------------------------gdb-4.18 on my Host-----------------------------
>paugaml@p5ak6450:~/uCsimm/src/test > m68k-unknown-coff-gdb ./test.coff
>GNU gdb 4.18
>Copyright 1998 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
>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=i586-pc-linux-gnu
>(gdb) target remote 192.168.0.12:1024
>Remote debugging using 192.168.0.12:1024
>0x10ce36a0 in text_start ()
>1 #include <unistd.h>
>2 #include <string.h>
>5 main (argc, argv)
>6 int argc;
>7 char **argv;
>9 unsigned char *p = "BONJOUR !!!";
>10 unsigned short k;
>(gdb) b 1
>Breakpoint 1 at 0x10ce36e8: file test.c, line 1.
>Single stepping until exit from function text_start,
>which has no line number information.
>Program exited with code 013.
>----------------------------gdbserver on uCsimm-----------------------------
># gdbserver :1024 test
>Process test created; pid = 19
>code at 10ce36a0, data at 75e018
>Remote debugging using :1024
>Child exited with retcode = b
>Child exited with status 0
>This message resent by the firstname.lastname@example.org list server http://www.uClinux.com/
This message resent by the email@example.com list server http://www.uClinux.com/
This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:35 EST