- 论坛徽章:
- 0
|
前两天翻到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: 拒绝连接.
请问这是为什么???有没有朋友有相似的经历 |
|