8.3 printf-Hello-world Debug-Session(13.04.2008) Wie kann ich überhaupt debuggen? Erste Möglichkeit: andreas@gericom:~/Development/COBRA_rot/uClinux/uClinux-dist-20040218-cobra-20040324/user/gdbserver> head README README for GDBserver & GDBreplay by Stu Grossman and Fred Fish Introduction: This is GDBserver, a remote server for Un*x-like systems. It can be used to control the execution of a program on a target system from a GDB on a different host. GDB and GDBserver communicate using the standard remote serial protocol implemented in remote.c, and various *-stub.c files. They communicate via either a serial line or a TCP connection. Ich muß also erstmal den gdbserver mit compilieren und dann versuchen, anzusprechen. Wie der erste Blick in das Directory zeigt, wird sogar dieser gdbserver bereits mitcompiliert: andreas@gericom:~/Development/COBRA_rot/uClinux/uClinux-dist-20040218-cobra-20040324/user/gdbserver> ls bfd gdbarch.h gdbserver low-linux.c low-sun3.c remote-utils.c tm.h config gdbreplay gdbserver.1 low-linux.o Makefile remote-utils.o utils.c config.status gdbreplay.c gdbserver.gdb low-lynx.c Makefile.in server.c utils.o configure.in gdbreplay.gdb include low-sim.c nm.h server.h xm.h gdb gdbreplay.o low-hppabsd.c low-sparc.c README server.o da ja o-Files und "gdbserver" selbst entstanden ist andreas@gericom:~/Development/COBRA_rot/uClinux/uClinux-dist-20040218-cobra-20040324/user/gdbserver> ls -lt insgesamt 1106 -rwxr--r-- 1 andreas users 26788 2005-06-12 15:36 gdbreplay -rwxr-xr-x 1 andreas users 262583 2005-06-12 15:36 gdbreplay.gdb -rw-r--r-- 1 andreas users 35352 2005-06-12 15:36 gdbreplay.o -rwxr--r-- 1 andreas users 29624 2005-06-12 15:36 gdbserver -rwxr-xr-x 1 andreas users 328470 2005-06-12 15:36 gdbserver.gdb -rw-r--r-- 1 andreas users 72652 2005-06-12 15:36 remote-utils.o -rw-r--r-- 1 andreas users 50928 2005-06-12 15:36 server.o -rw-r--r-- 1 andreas users 85388 2005-06-12 15:36 low-linux.o -rw-r--r-- 1 andreas users 45368 2005-06-12 15:36 utils.o drwxr-xr-x 2 andreas users 192 2004-02-17 14:00 bfd drwxr-xr-x 3 andreas users 72 2004-02-17 14:00 config -rwxr-xr-x 1 andreas users 262 2004-02-17 14:00 config.status -rw-r--r-- 1 andreas users 2911 2004-02-17 14:00 configure.in drwxr-xr-x 2 andreas users 1904 2004-02-17 14:00 gdb ... Allerdings sind die binaries nicht mehr gerade im letzten Make entstanden. Ich hoffe, daß sie nichtsdestotrotz funktionieren... Copyright © Andreas Birkert Letzte Aktualisierung am 20. Dezember 2013 |