From owner-freebsd-hackers Sat Mar 9 5:46:43 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from atlantis.homeip.net (a30032.upc-a.chello.nl [62.163.30.32]) by hub.freebsd.org (Postfix) with SMTP id 57F9637B400 for ; Sat, 9 Mar 2002 05:46:39 -0800 (PST) Received: (qmail 1587 invoked from network); 9 Mar 2002 13:46:37 -0000 Received: from jeremy.ourhome.nl (192.168.1.4) by atlantis.ourhome.nl with SMTP; 9 Mar 2002 13:46:37 -0000 Date: Sat, 9 Mar 2002 14:46:37 +0100 From: Willem van Engen To: "Daniel O'Connor" Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Remote GDB in -stable.. Message-Id: <20020309144637.028f317e.wvengen@stack.nl> In-Reply-To: <1015646519.68150.6.camel@chowder.dons.net.au> References: <20020308105632.7fbfa098.wvengen@stack.nl> <1015646519.68150.6.camel@chowder.dons.net.au> X-Mailer: Sylpheed version 0.7.3 (GTK+ 1.2.10; i386-portbld-freebsd4.5) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 09 Mar 2002 15:31:55 +1130 "Daniel O'Connor" wrote: > On Fri, 2002-03-08 at 21:26, Willem van Engen wrote: > > > Anyone have any handy tips? > > Did you read the developers' handbook, chapter 16? > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/x5013.html > > Yeah I read that. > I can't get an annotates back trace though :( > ie I want gdb to show me line numbers of function calls and the like.. So what exactly doesn't work and what does? Are the kernel's symbols loaded (try 'list printf' e.g. before 'target'-ing)? If it fails, make sure you load the kernel with symbols included, not the stripped one. If you used 'makeoptions DEBUG=foo' in the kernel config, you need to load kernel.debug (from /sys/compile/MYKERNEL) into gdb, instead of kernel. - Willem To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message