Running Gdbserver on the arm board
[Root@51board usb]#./gdbserver 192.168.0.29:1234 Arm0702_8.out
Process Arm0702_8.out created; PID = 228
Wait for a request from the server
This is the debugging of the QTE program, first run the program and then debug the process number. The program name is the same on the PC computer.
./gdbserver 192.168.0.29:1234--attach 545
Description
Here the 192.168.0.29 is the IP of the PC (this should be on the ARM board IP in a network segment)
1234 The port number specified here, wait for the use of, of course, this can also use the other port number
Arm0702_8.out
Running ARM-LINUX-GDB Debug program for PC computer
[Root@zieckey collierymainsrc02]# arm-linux-gdb Arm0702_8.out
GNU GDB 5.3
Copyright 2002 Free Software Foundation, Inc.
The GDB is free software, covered by the GNU general public License, and your are
Welcome to change it and/or distribute copies of it under certain conditions.
Type ' show copying ' to the conditions.
There is absolutely no warranty for GDB. Type ' show warranty ' for details.
This is GDB was configured as "--host=i686-pc-linux-gnu--target=arm-linux" ...
(GDB)
Upper PC connected to arm board
[Root@zieckey collierymainsrc02]# arm-linux-gdb Arm0702_8.out
GNU GDB 5.3
Copyright 2002 Free Software Foundation, Inc.
The GDB is free software, covered by the GNU general public License, and your are
Welcome to change it and/or distribute copies of it under certain conditions.
Type ' show copying ' to the conditions.
There is absolutely no warranty for GDB. Type ' show warranty ' for details.
This is GDB was configured as "--host=i686-pc-linux-gnu--target=arm-linux" ...
(GDB) Target remote 192.168.0.50:1234
Remote Debugging using 192.168.0.50:1234
0x40001550 in?? ()