From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 30 17:57:52 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 19ACBB0C for ; Wed, 30 Jul 2014 17:57:52 +0000 (UTC) Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu [18.9.25.13]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 992352048 for ; Wed, 30 Jul 2014 17:57:50 +0000 (UTC) X-AuditID: 1209190d-f79c06d000002f07-d5-53d932179a85 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) (using TLS with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP id DF.69.12039.71239D35; Wed, 30 Jul 2014 13:57:43 -0400 (EDT) Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id s6UHvgei028448; Wed, 30 Jul 2014 13:57:43 -0400 Received: from multics.mit.edu (system-low-sipb.mit.edu [18.187.2.37]) (authenticated bits=56) (User authenticated as kaduk@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s6UHvee7010442 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 30 Jul 2014 13:57:42 -0400 Received: (from kaduk@localhost) by multics.mit.edu (8.12.9.20060308) id s6UHveKn015480; Wed, 30 Jul 2014 13:57:40 -0400 (EDT) Date: Wed, 30 Jul 2014 13:57:40 -0400 (EDT) From: Benjamin Kaduk X-X-Sender: kaduk@multics.mit.edu To: Nidal Khalil Subject: Re: freebsd-hackers Digest, Vol 588, Issue 1 In-Reply-To: Message-ID: References: User-Agent: Alpine 1.10 (GSO 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrJIsWRmVeSWpSXmKPExsUixG6noitudDPY4MhfKYvtm/8xWjx6foLR gcljxqf5LB47Z91lD2CK4rJJSc3JLEst0rdL4MqYOL+FtWCdYMWre18ZGxjv83YxcnJICJhI HNq6mQ3CFpO4cG89kM3FISQwm0niUEMDK4SzkVFiybH1TBDOISaJ9Z+uMEM4DYwSvzc+BOtn EdCWuNowgRXEZhNQk3i8t5kVYq6ixOZTk4AaODhEBFQk3k7PBwkzC8hLXNh8iBEkLCxgKrHr lCtImFMgUGLJ32PsIDavgKPEhmctjBCrDrNIPD00kwUkISqgI7F6/xQWiCJBiZMzn7BAzLSU OPfnOtsERqFZSFKzkKQWMDKtYpRNya3SzU3MzClOTdYtTk7My0st0jXSy80s0UtNKd3ECAph TkneHYzvDiodYhTgYFTi4Z3x/3qwEGtiWXFl7iFGSQ4mJVFeOb2bwUJ8SfkplRmJxRnxRaU5 qcWHGCU4mJVEgFYD5XhTEiurUovyYVLSHCxK4rxvra2ChQTSE0tSs1NTC1KLYLIyHBxKErz+ hkCNgkWp6akVaZk5JQhpJg5OkOE8QMPVDUCGFxck5hZnpkPkTzEqSonzmoA0C4AkMkrz4Hph KeYVozjQK8K8BSBVPMD0BNf9CmgwE9Dg57eugwwuSURISTUwHp7+Xezqm2Wn50vxpXxn0Ag9 VMWhHLXxs3OrsL07OyvHR5NVQqUPS5J/mARn/bZ58e5KY6/ti9u5VU76Sk+/XF/L/n5ejrP7 sSDW27/5Nq/rXd64pO78WXeFftGnG6L5OneV3vZQ37yHSfj7y6gbKyfdTayc4rrGdkv8XVPj 1AtmRwNbZpzSVGIpzkg01GIuKk4EAHPbGYQMAwAA Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2014 17:57:52 -0000 On Wed, 30 Jul 2014, Nidal Khalil wrote: > Yeah. This is the doc. > Kgdb works for bt only, info locals results in no symbols found. kgdb works great on crash dumps for me. My kernels are compiled using "makeoptions DEBUG=-g", and sometimes with -O0. I would have to check, but suspect that the kernels for some releases do not have the debug symbols enabled. > In regards to gdb the -k option doesn't work. It results in unknown option. Our kgdb is customized to work with FreeBSD kernel dumps; stock gdb isn't really going to work. > With out it it doesn't understand the vmcore file format. > Debugging tools are broken for release 9.2 and release 9.3 with the > exception of ddb. > The documentation is incorrect and doesn't match the new releases. I think you will need to provide a more detailed pointer to what precise documentation steps you think are incorrect, and (copy/paste of) the actual behavior you are seeing, in order for us to try to reproduce it. As I say, kgdb works fine in my usage. > Nidal > On Jul 29, 2014 5:23 PM, "Benjamin Kaduk" wrote: > >> You did not heed my note about public lists. >> You did not link to what documentation you believe is incorrect. >> You might consult http://www.freebsd.org/doc/en_ >> US.ISO8859-1/books/developers-handbook/kerneldebug-gdb.html >> >> On Tue, 29 Jul 2014, Nidal Khalil wrote: >> >> The documentation for gdb is not correct? >>> >>> I am trying to use gdb to analyze a kernel crash. However the -k is >>> recognized. This is version 6.1.1 that came with the installation. >>> Using it without -k it will not understand the vmcore file format >>> do I need a different gdb. Thanks >>> >>> Nidal >>> >>> >>> >>> On Wed, Jul 23, 2014 at 7:56 AM, Benjamin Kaduk wrote: >>> >>> On Wed, 23 Jul 2014, Nidal Khalil wrote: >>>> >>>> I have no interest in firewire. How can I do this over Ethernet. The >>>> >>>>> documentation is a little bit vague in this area. Thanks I don't believe that remote debugging over ethernet has been implemented yet, though I do remember some talk about interest and/or the beginning of a project, years ago. -Ben