From owner-svn-doc-head@FreeBSD.ORG Fri Jul 20 14:46:09 2012 Return-Path: Delivered-To: svn-doc-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0428B106566C; Fri, 20 Jul 2012 14:46:09 +0000 (UTC) (envelope-from issyl0@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id E20368FC16; Fri, 20 Jul 2012 14:46:08 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q6KEk8EJ007626; Fri, 20 Jul 2012 14:46:08 GMT (envelope-from issyl0@svn.freebsd.org) Received: (from issyl0@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q6KEk8Ze007624; Fri, 20 Jul 2012 14:46:08 GMT (envelope-from issyl0@svn.freebsd.org) Message-Id: <201207201446.q6KEk8Ze007624@svn.freebsd.org> From: Isabell Long Date: Fri, 20 Jul 2012 14:46:08 +0000 (UTC) To: doc-committers@freebsd.org, svn-doc-all@freebsd.org, svn-doc-head@freebsd.org X-SVN-Group: doc-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r39237 - head/en_US.ISO8859-1/books/developers-handbook/kerneldebug X-BeenThere: svn-doc-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the doc tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Jul 2012 14:46:09 -0000 Author: issyl0 Date: Fri Jul 20 14:46:08 2012 New Revision: 39237 URL: http://svn.freebsd.org/changeset/doc/39237 Log: Describe remote GDB configuration in greater depth in the developer's handbook. PR: docs/170013 Submitted by: Carl Delsey (carl.r.delsey (at) intel.com) Reviewed by: gavin Approved by: gjb (mentor) Modified: head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.sgml Modified: head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.sgml ============================================================================== --- head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.sgml Thu Jul 19 12:17:56 2012 (r39236) +++ head/en_US.ISO8859-1/books/developers-handbook/kerneldebug/chapter.sgml Fri Jul 20 14:46:08 2012 (r39237) @@ -686,13 +686,17 @@ debugging information). You should configure the kernel in question with config - -g, include into the configuration, and + -g if building the traditional way. If + building the new way, make sure that + makeoptions DEBUG=-g is in the configuration. + In both cases, include in the configuration, and compile it as usual. This gives a large binary, due to the 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. + to any serial line of the debugging host. See &man.sio.4; for + information on how to set the flags on an sio device. Now, on the debugging machine, go to the compile directory of the target kernel, and start gdb: