免费注册 查看新帖 |

Chinaunix

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

kgdb环境建立和调试的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-08-30 11:18 |只看该作者 |倒序浏览
本帖最后由 lijierson8 于 2010-08-30 11:24 编辑

今天按照一篇博客进行了kgdb的安装和调试,地址如下http://blog.csdn.net/jie12310/archive/2009/09/18/4564853.aspx
但出现了如下两个问题:
1.在cilent端进行vmlinux调试,设置命令时,出现如下错误:
linux-ebia:/usr/src/linux-2.6.26 #  gdb vmlinux
GNU gdb (GDB; openSUSE 11.1) 6.8.50.20081120-cvs
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 "i586-suse-linux".
For bug reporting instructions, please see:
<http://bugs.opensuse.org/>...
(gdb) set remotebaud 115200
(gdb) target remote /tmp/com_1
/tmp/com_1: Inappropriate ioctl for device.
(gdb) target remote /dev/ttyS0
Remote debugging using /dev/ttyS0
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response


自己也按照帖子中的方法安装了socat,用替换后的串口出现如下错误/tmp/com_1: Inappropriate ioctl for device.

还麻烦 做过的高手指点 谢谢了

论坛徽章:
0
2 [报告]
发表于 2010-09-05 13:07 |只看该作者
Mark一下。

KGDB调试,非得这样做么?

不需要
gdb) set remotebaud 115200
(gdb) target remote /tmp/com_1
啊。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP