From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 16 02:08:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6B3D416A4CE; Wed, 16 Jun 2004 02:08:46 +0000 (GMT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 94F6343D48; Wed, 16 Jun 2004 02:08:45 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i5G28RL4025883; Wed, 16 Jun 2004 11:38:30 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Wed, 16 Jun 2004 11:38:24 +0930 User-Agent: KMail/1.6.2 References: <20040615204632.0769a41e.liamfoy@sepulcrum.org> In-Reply-To: <20040615204632.0769a41e.liamfoy@sepulcrum.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200406161138.24526.doconnor@gsoft.com.au> X-Spam-Score: -4.9 () CARRIAGE_RETURNS,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: "Liam J. Foy" cc: hackers@freebsd.org Subject: Re: GDB/Kernel Question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jun 2004 02:08:46 -0000 =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-----