免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2762 | 回复: 3
打印 上一主题 下一主题

基于mips的GDB调试报错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-05-27 09:04 |只看该作者 |倒序浏览
我先在目标板上运行gdbserver:
目标板的IP是:192.168.2.210

/tmp # ./gdbserver :3456 mini_snmpd
Process mini_snmpd created; pid = 297
Listening on port 3456

然后我在PC上运行GDB

$ /opt/mips-gdb/bin/mips-linux-uclibc-gdb mini_snmpd
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
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=x86_64-unknown-linux-gnu --target=mips-linux-uclibc"...
(gdb) target remote 192.168.2.210:3456
Remote debugging using 192.168.2.210:3456
[New Thread 293]
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
0x2aaa8af0 in ?? ()
(gdb) list
303     }
304
305
306
307     /* -----------------------------------------------------------------------------
308      * Main program
309      */
310
311     int main(int argc, char *argv[])
312     {
(gdb) run -t 4
Starting program: /home/liufeifei/t44/t44_src/t44/apps/mini_snmpd/mini_snmpd -t 4
Don't know how to run.  Try "help target".


为什么run不启动呢?盼回复,非常感谢。

论坛徽章:
0
2 [报告]
发表于 2010-05-27 09:13 |只看该作者
刘菲菲

论坛徽章:
0
3 [报告]
发表于 2010-05-27 11:44 |只看该作者
回复 2# linuxlixk


    你是?

论坛徽章:
0
4 [报告]
发表于 2010-05-27 13:03 |只看该作者
回复 3# 灰菲湮灭


    我闲得,随便说的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP