Using xkgdb.

From: Vinay Vernekar (
Date: Mon Aug 28 2000 - 07:54:00 EST

I was looking at using kernel debugger in which putting breakpoints and
step through is possible. I am using SuSE linux 6.2 kernel version
2.2.14. I downloaded the xkdebug patch from
patched my kernel and did a "make install". I also did make modules and
make modules_install after that. But when I start the script xkgdb in
/usr/src/linux/xkgdb it gives me error. I error shown is as below.
Kindly reply with your suggestions.


Warning: /usr/src/linux/vmlinux version does not match current kernel!
/lib/modules/2.2.14/misc/xkdebug.o: unresolved symbol kernel_int1_hook
/lib/modules/2.2.14/misc/xkdebug.o: unresolved symbol kernel_int3_hook
mknod: wrong number of arguments
Try `mknod --help' for more information.

gdb 4.16 gets confused by *.o files that were compiled with debugging
information (-g). This makes it too risky to run xkdebug on loaded
modules so, until the gdb problem is fixed, xkgdb does not load symbols
for modules. If any debugging expert can solve this problem, read the
xkgdb script for more details.

GNU gdb 4.18
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
welcome to change it and/or distribute copies of it under certain
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
This GDB was configured as "i386-suse-linux".
Reading symbols from /usr/src/linux/vmlinux...done
Connecting to running kernel...
/tmp/kgdb.965:5: Error in sourced command file:
/dev/xkdebug: No such file or directory.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:21 EST