GDB/Kernel Question

Daniel O'Connor doconnor at
Wed Jun 16 02:08:46 GMT 2004

Hash: SHA1

On Wed, 16 Jun 2004 05:16, Liam J. Foy wrote:
> Am trying to follow line by line of some code in userland. Now in
> the userland program it calls a kernel function. Is there a way
> I can carry on following it line by line in the kernel function
> and once it has finished return back to the userland program?
> Of course, my kernel is compiled with the -g options.
> Love to hear if it can be done and if so now, thanks in advance !

No you can't..
The userland debugger can't go into the kernel even if you ran it as root..

If you wanted to step through the kernel you could setup another machine and 
use a serial or firewire cable to go through the kernel.

- -- 
Daniel O'Connor software and network engineer
for Genesis Software -
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
Version: GnuPG v1.2.4 (FreeBSD)


More information about the freebsd-hackers mailing list