From: Henry Nestler <henry.ne@ar...> - 2010-04-14 20:50:57
Chuck Tuffli wrote:
> Is it possible to debug the kernel using kdb on coLinux? If so, are
> there any gotcha's I should know about?
No, kdb is not usable. In kernel exist code to use colinux-debug-daemon
to set Trace-Points. This was never finished. Some code atifacts exist
in kernel, for example function "co_kernel_tracepoint_add" in
arch/x86/kernel/cooperative.c. To activate this, you needs finish the
userland program and the connection between kernel and userland. Some
code exist in userland too, for example
"CO_MONITOR_MESSAGE_TYPE_TRACE_POINT" in src/colinux/user/daemon.c
In kernel exist some functions to replace kernel code with "int 3"
(opcode 0xcc) and print out a debug message, if kernel passed this line.
But nobody calls co_kernel_tracepoint_add. I feel, it was never working.
Ihave not checked, how it should work exactly.
Get latest updates about Open Source Projects, Conferences and News.