gdb/gdbserver TQM885
Hello,
I have a problem on debugging my target board TQM885 (ELDK, Linux 2.4.25) with gdb/gdbserver . My Testprogram is a simple helloworld. The program itself is running as expected, but its not possible to debug. Would be very glad, if anyone can help me. Target and Host are in different subnets, but this is solved via route add.. command
___________________
Host running gdb:
oparz@linux:~/autoconf_tests/hello_GNU-0.1> gdb ./hello_GNU
GNU gdb 6.3
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 "i586-suse-linux"...Using host libthread_db library "/lib/tls/libthread_db.so.1".
(gdb) target remote 192.168.10.232:5000
Remote debugging using 192.168.10.232:5000
Couldn't establish connection to remote target
Remote sent bad register number 40: 3000ef14;
Packet: 'T0501:7ffffed0;40:3000ef14;'
(gdb)
__________________________
and the target running gdbserver:
root@/># gdbserver 192.168.2.21:5000 ./hello_GNU Process ./hello_GNU created; pid = 56 Remote debugging from host 192.168.2.21 readchar: Got EOF Remote side has terminated connection. GDBserver will reopen the connection. __________________ Any help is very appreciated
Dr. Otto Parzhuber
Munich University of Applied Sciences
Fac. of Precision Engineering
Quoted 4 lines · In message <[email protected]> you wrote:
I have a problem on debugging my target board TQM885 (ELDK, Linux 2.4.25) with gdb/gdbserver . My Testprogram is a simple helloworld. The program itself is running as expected, but its not possible to debug.
...
Quoted 3 lines
Host running gdb:
oparz@linux:~/autoconf_tests/hello_GNU-0.1> gdb ./hello_GNU GNU gdb 6.3
That's wrong. You cannot use a native x86 GDB to debug a PowerPC system.
Quoted 2 lines
Remote sent bad register number 40:
3000ef14;
Packet: 'T0501:7ffffed0;40:3000ef14;'
Here it's telling you that it has problems to understand the other architecture.
Quoted 1 line
Any help is very appreciated
Use the ppc_8xx-gdb that comes with the ELDK instead. And make sure to read the DULG, especially the hints about setting solib-absolute-prefix
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: [email protected] There's no sense in being precise when you don't even know what you're talking about. -- John von Neumann