How To Use GDB on mips platform?
The attachment is mipsel-linux-gdb for mips platform which could be put
into directory of toolchain "/usr/bin/". it can run only on ubuntu linux
due to glibc version which is different from that on fedora.
step 1: running gdbserver on your board.
/mnt/hdd/Unit_test/Casablanca # gdbserver 172.18.83.251:5555 ./DvdPlayer
step 2: running mipsel-linux-gdb on your host PC.
Casablanca$ mipsel-linux-gdb ./DvdPlayer
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-linux --target=mipsel-linux".
For bug reporting instructions, please see:
<
Reading symbols from /home/andrew/Work/LCC_055H/userapp/system/branch_src_sharedMemory_integration/Unit_test/Casablanca/DvdPlayer...done.
(gdb)
(gdb) target remote 172.18.83.251:5555
Remote debugging using 172.18.83.251:5555
warning: Can not parse XML target description; XML support was disabled at compile time
0x00400140 in __start ()
(gdb)
(gdb) break main
Breakpoint 1 at 0x4f8d20: file main.cpp, line 180.
(gdb)
(gdb)c
Continuing.
Breakpoint 1, main (argc=1, argv=0x7f98fe54) at main.cpp:180
180 START_MODE mode = NORMAL_START;
(gdb)