Hi all
What 's the relationship between gdb and ptrace, if the kernel does
not support ptrace, can gdb work ?
Is there some one can explain this for me
Hi all
What 's the relationship between gdb and ptrace, if the kernel does
not support ptrace, can gdb work ?
Is there some one can explain this for me
gdb works by peeking into a child process address space. ptrace does the same - but only in Linux systems.
On other systems there are completely different system API's that support a debugger.
I want to know if gdb can works if kernel don't support ptrace?
kgdb--debug kernel, does it need ptrace support ?
Yes, gdb works if there exists a version of gdb written for your OS. HPUX has no ptrace. gdb works well on HPUX - I've used it for 8 years. gdb was written to use the HPUX API.
kgdb works on the Linux kernel. Period. No other OS that I know of.
You do know you need two linux machines tied together on a serial cable to run kgdb?
What OS do you have?