From owner-freebsd-hackers@FreeBSD.ORG Fri May 15 15:27:20 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2066B847 for ; Fri, 15 May 2015 15:27:20 +0000 (UTC) Received: from mail.ignoranthack.me (ignoranthack.me [199.102.79.106]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 02A531A7C for ; Fri, 15 May 2015 15:27:19 +0000 (UTC) Received: from [192.168.200.214] (unknown [50.136.155.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbruno@ignoranthack.me) by mail.ignoranthack.me (Postfix) with ESMTPSA id 648AB193656 for ; Fri, 15 May 2015 15:27:18 +0000 (UTC) Message-ID: <55561055.9020902@ignoranthack.me> Date: Fri, 15 May 2015 08:27:17 -0700 From: Sean Bruno Reply-To: sbruno@freebsd.org User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Re: How to get anything useful out of kgdb? References: <554E41EE.2010202@ignoranthack.me> In-Reply-To: <554E41EE.2010202@ignoranthack.me> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 May 2015 15:27:20 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 On 05/09/15 10:20, Sean Bruno wrote: > > tl;dr What are the kernel config options to get good output of > kgdb? > > > I'm trying to get the ability to debug and display internal > variables, as one does, with kgdb. I'm *must* be doing this wrong > as I cannot get any useful output from accessing variables that > were JUST accessed in order to invoke a panic() that I have > inserted. This is a GENERIC kernel without INVARIANTS and without > WITNESS: > > https://people.freebsd.org/~sbruno/wtf_kgdb.txt > > I seem to have debug enabled and am able to browse source, but I > obviously haven't compiled correctly as things are optimized out. > > sean > A little bit of progress and learning on my side, so that's good. I'll be patching gdb with a couple of 10-year old upstream commits later today to squash some type missing errors, "#0 doadump (textdump=Unhandled dwarf expression opcode 0x93". Review is here https://reviews.freebsd.org/D2534 sean -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJVVhBTXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5k9MQH/ioTLENq1AZRDsOQaRR8U4lF 5iD6cWYgfqkUrLr5VZv6OyVK6zMbf4Jk/PClN7c7m4rVp7tC2kGeiitbaRVOaGxU nb2zJ7eTs6uufCqd9wS3PWjwZlKhggAE9OplPIckU2oy4vlI7tr8DWuh5Mlr/el0 qJ2Bmnzp0vHPqniyCEsxgd/7xm8KjzN6CJASzIdgEd2bVMXbtAHG1XQ6lry+8NJ/ dpwrs9KqHc4xvR7frQzaek2soDIrdOEKV9f4e+PCBav1MbZKoVzYARR3+8LjHd7W k0oNhl8FqqqUYnwS+iBzc/08K6VbIpkzEJzxGXDUsSp++9e8x9umE7FwMdKY2lo= =4LZI -----END PGP SIGNATURE-----