Hi everyone: Recently I was using kgdb and VMware workstation to debug linux kernel 2.6.26.
I compiled and install kgdb according to the following webpage: http://jaredrobinson.com/blog/using-the-2626-linux-kernel-debugger-kgdb-with-vmware/ But I still have some problems: When I start gdb like:gdb ./vmliunx, it shows: [r...@localhost linux-2.6.26]# gdb ./vmlinux GNU gdb Red Hat Linux (6.6-35.fc8rh) 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"... Using host libthread_db library "/lib/libthread_db.so.1". (gdb) set remotebaud 115200 (gdb) target remote /dev/ttyS0 Remote debugging using /dev/ttyS0 warning: shared library handler failed to enable breakpoint* *0xc045516d in ?? ()** Then I type “n”, it shows: (gdb) n Cannot find bounds of current function I simply realize the output “0xc045516d in ?? ()” is different from common output “breakpoint () at kernel/kgdb.c:1212 1212:atomic_set(&kgdb_setting_breakpoint, 0);” which I found on some webpages The real problem is that when I set breakpoints at like “sys_open”, “sys_getdents64”, the kernel execution didn’t stop at that point. But if I “echo g > /proc/sysrq-trigger ” in target machine, it can stop running. In the development machine, I still only can send “continue” command to make the target run again, if I send “next” command, it shows just like above. Does anybody confront this kind of problems, please give me some suggestions, I really appreciate that! -- Min Li School of Computer Science and Technology Cluster and Grid Computing Lab Services Computing Technology and System Lab Huazhong University of Science and Technology Wuhan, 430074, China Tel: +86-139-8625-1431 Email: [email protected] ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Kgdb-bugreport mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport
