kgdb环境建立和调试的问题
时间:2010-08-30
来源:互联网
本帖最后由 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.
还麻烦 做过的高手指点 谢谢了
今天按照一篇博客进行了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.
还麻烦 做过的高手指点 谢谢了
作者: lijierson8 发布时间: 2010-08-30
Mark一下。
KGDB调试,非得这样做么?
不需要
gdb) set remotebaud 115200
(gdb) target remote /tmp/com_1
啊。
KGDB调试,非得这样做么?
不需要
gdb) set remotebaud 115200
(gdb) target remote /tmp/com_1
啊。
作者: omycle 发布时间: 2010-09-05
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28