免费注册 查看新帖 |

Chinaunix

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

VMware debug linux kernel [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-27 17:13 |只看该作者 |倒序浏览
前两天翻到al*斑竹关于用vmware debug linux kernel的大作
今天实验了一下,不过失败了

我用rhel 5,本身已经编译了内核,所以就直接在vmware里面装rhel5,就不编译内核和拷贝vmlinux和代码了
然后按照说明使用,出错...

信息如下:
[root@localhost linux-2.6.21.3]# gdb
GNU gdb Red Hat Linux (6.5-16.el5rh)
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu".
(gdb) file vmlinux
Reading symbols from /usr/src/linux-2.6.21.3/vmlinux...done.
Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) target remote localhost:8832
localhost:8832: 拒绝连接.


请问这是为什么???有没有朋友有相似的经历

论坛徽章:
0
2 [报告]
发表于 2007-08-28 09:23 |只看该作者
target remote localhost:8832

把localhost改成虚拟机的IP地址

论坛徽章:
0
3 [报告]
发表于 2007-08-28 21:06 |只看该作者

谢谢楼上的
不过今天试试又行了...我是用localhost

论坛徽章:
0
4 [报告]
发表于 2007-08-29 08:50 |只看该作者
原帖由 DesignInside 于 2007-8-28 21:06 发表

谢谢楼上的
不过今天试试又行了...我是用localhost

这次是运气
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP