Chinaunix首页 | 论坛 | 博客
  • 博客访问: 713905
  • 博文数量: 104
  • 博客积分: 4320
  • 博客等级: 上校
  • 技术积分: 1948
  • 用 户 组: 普通用户
  • 注册时间: 2010-05-30 14:42
文章分类

全部博文(104)

文章存档

2012年(4)

2011年(65)

2010年(35)

分类: LINUX

2011-05-20 13:34:41

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)


阅读(1802) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~