From owner-freebsd-hackers@FreeBSD.ORG Sat May 9 17:20:54 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id BDF6BA89 for ; Sat, 9 May 2015 17:20:54 +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 A19C41DE7 for ; Sat, 9 May 2015 17:20:53 +0000 (UTC) Received: from [192.168.200.208] (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 3EE89192906 for ; Sat, 9 May 2015 17:20:47 +0000 (UTC) Message-ID: <554E41EE.2010202@ignoranthack.me> Date: Sat, 09 May 2015 10:20:46 -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: How to get anything useful out of kgdb? Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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: Sat, 09 May 2015 17:20:54 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQF8BAEBCgBmBQJVTkHqXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRCQUFENDYzMkU3MTIxREU4RDIwOTk3REQx MjAxRUZDQTFFNzI3RTY0AAoJEBIB78oecn5k4w4H/jv2BlUW4OiK5TPcor+32HVC 1GxRJz8nkub8y5E04K0BCVKieulOFXm8+yWjRwGPKW58G8mz/gzHUiip9GjYgnW3 sTBF2p+JvaB4/69AwsNKur7oCzmdM5pT5MBgWuXxGw41mCWuYO2zimmuFZc1iPf1 7QX8CeVGU9tHvndMw1nCZx2/R+3GL0SDtRvk0N7NYGij04NvmPwWKm4bGdbMZjOG NJncTCiVKKW2zQmxq4AYZpLo+odoT2DgbIXz9KXPNMDixg22Tx5+o2/OL4dJ8mpu U5kzLmPFhumUKEsG1uSnxRb7snWJQBKdTkEOx+qbMGPCHoUd6gGV1wq8XJsV8+M= =4KG4 -----END PGP SIGNATURE-----