From owner-svn-doc-all@FreeBSD.ORG Sat Mar 23 00:01:15 2013 Return-Path: Delivered-To: svn-doc-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 14FEBB8D; Sat, 23 Mar 2013 00:01:15 +0000 (UTC) (envelope-from obrien@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E2A79B5A; Sat, 23 Mar 2013 00:01:14 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r2N01EW1089130; Sat, 23 Mar 2013 00:01:14 GMT (envelope-from obrien@svn.freebsd.org) Received: (from obrien@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r2N01EeF089129; Sat, 23 Mar 2013 00:01:14 GMT (envelope-from obrien@svn.freebsd.org) Message-Id: <201303230001.r2N01EeF089129@svn.freebsd.org> From: "David E. O'Brien" Date: Sat, 23 Mar 2013 00:01:14 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org Subject: svn commit: r41291 - head/en_US.ISO8859-1/books/developers-handbook/kerneldebug X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-doc-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire doc trees \(except for " user" , " projects" , and " translations" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Mar 2013 00:01:15 -0000 Author: obrien Date: Sat Mar 23 00:01:14 2013 New Revision: 41291 URL: http://svnweb.freebsd.org/changeset/doc/41291 Log: Update for uart(4) (FreeBSD 8.0+). Modified: head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.xml Modified: head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.xml ============================================================================== --- head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.xml Sat Mar 23 00:00:25 2013 (r41290) +++ head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.xml Sat Mar 23 00:01:14 2013 (r41291) @@ -695,9 +695,9 @@ debugging information. Copy this kernel to the target machine, strip the debugging symbols off with strip -x, and boot it using the boot option. Connect the serial line - of the target machine that has "flags 080" set on its sio device - to any serial line of the debugging host. See &man.sio.4; for - information on how to set the flags on an sio device. + of the target machine that has "flags 080" set on its uart device + to any serial line of the debugging host. See &man.uart.4; for + information on how to set the flags on an uart device. Now, on the debugging machine, go to the compile directory of the target kernel, and start gdb: @@ -712,7 +712,7 @@ Copyright 1996 Free Software Foundation, Initialize the remote debugging session (assuming the first serial port is being used) by: - (kgdb) target remote /dev/cuaa0 + (kgdb) target remote /dev/cuau0 Now, on the target host (the one that entered DDB right before even starting the device probe), type: @@ -730,7 +730,7 @@ Stopped at Debugger+0x35: movb $0, edata immediately, simply type s (step). Your hosting GDB will now gain control over the target kernel: - Remote debugging using /dev/cuaa0 + Remote debugging using /dev/cuau0 Debugger (msg=0xf01b0383 "Boot flags requested debugger") at ../../i386/i386/db_interface.c:257 (kgdb)