Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Jun 2004 11:38:24 +0930
From:      "Daniel O'Connor" <doconnor@gsoft.com.au>
To:        freebsd-hackers@freebsd.org
Cc:        hackers@freebsd.org
Subject:   Re: GDB/Kernel Question
Message-ID:  <200406161138.24526.doconnor@gsoft.com.au>
In-Reply-To: <20040615204632.0769a41e.liamfoy@sepulcrum.org>
References:  <20040615204632.0769a41e.liamfoy@sepulcrum.org>

next in thread | previous in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
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 an=
d=20
use a serial or firewire cable to go through the kernel.

=2D --=20
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"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
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFAz6uY5ZPcIHs/zowRAn+nAJ0e/+lsmRpSPIsd1c+sJpQLndq62gCZAQ1U
2mWnmH1xksE3zMXsKprEnKg=3D
=3D1TAR
=2D----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406161138.24526.doconnor>