Messages in this thread | | | Date | Fri, 17 Dec 1999 10:57:28 +0100 | From | Peter Seiderer <> | Subject | xkdebug and single stepping |
| |
Hallo,
I applied the IKD patch from ftp://e-mind.com/pub/andrea/ikd/ to LinuxKernel 2.2.13 (I used the patch for 2.2.10, only three minor things needed to be patched by hand).
Then I set a breakpoint to sys_ipc and wanted to single step trough the code (Just for learning a little bit about the Linux internals, not for bugtracking at the moment...). But the gdb hangs (?) (see output below) and the testprogramm from userland gets SIGTRAP.
Did I something wrong, or did I misunderstand the xkdebug.txt (Kernel code can be single-stepped.), or changed something in the kernel?
thank you in advance for your help Peter Seiderer
GNU gdb 4.18 Copyright 1998 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 "i686-pc-linux-gnu". Reading symbols from /usr/src/linux/vmlinux...done Connecting to running kernel... 0x0 in ?? () #0 0x0 in ?? () (gdb) b sys_ipc Breakpoint 1 at 0xc010e078: file sys_i386.c, line 116. (gdb) c Continuing.
Breakpoint 1, sys_ipc (call=0x17, first=0x4d2, second=0x400, third=0x200, ptr=0x0, fifth=0xbffff7f4) at sys_i386.c:116 116 version = call >> 16; /* hack for backward compatibility */ (gdb) s
----> GDB hangs, CTRL-C produces Cannot access memory at address 0x1. (gdb)
USERLAND-PROGRAMM OUTPUT: shm > ./a.out Trace/Breakpoint ausgel?st shm >
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |