I don't know whether this is the right place to ask for,
still if you could help me pointing to some document that
explain as how kgdb works internally
some generic doc on this remote debugging concept
for source-level kernel debugging,
I would be very much thankful .
Thanks & regards,
Tanmay Pradhan | Hewlett Packard ISO
Tru64 UNIX Performance Group | 3rd floor, Prestige Emerald,
Hewlett Packard | Lavelle Road, Bangalore-560001,
email: tanmay@... | INDIA
url: http://www.zk3.dec.com/~tanmay | tel: +91-80-2251554 extn-3448
From: George Anzinger <george@mv...> - 2003-09-28 00:59:56
Tanmay Pradhan wrote:
> I don't know whether this is the right place to ask for,
> still if you could help me pointing to some document that
> explain as how kgdb works internally
> some generic doc on this remote debugging concept
> for source-level kernel debugging,
> I would be very much thankful .
I would recommend the documentation files available with gdb as a
starter. Then there is the kgdb patch which has some text and, of
course, the code...
It is very much like debugging a program using ptrace. The real trick
is to, instead of using ptrace, send the ptrace request to a remote
server. Gdb uses this method to debug normal code on remote targets.
The remote server just turns around and calls ptrace and passes back
To advance to kernel debugging, the next step is to put the remote
server in the kernel and do the same sorts of things that the remote
server/ptrace do for remote user code.
George Anzinger george@...
Preemption patch: http://www.kernel.org/pub/linux/kernel/people/rml