From owner-svn-src-all@freebsd.org Wed May 23 16:49:33 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5BF25F1EB53; Wed, 23 May 2018 16:49:33 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B87F733CF; Wed, 23 May 2018 16:49:33 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (ralph.baldwin.cx [66.234.199.215]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 6737994C3; Wed, 23 May 2018 16:49:32 +0000 (UTC) (envelope-from jhb@freebsd.org) From: John Baldwin To: Eitan Adler Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r334089 - head/sbin/dumpon Date: Wed, 23 May 2018 09:30:31 -0700 Message-ID: <2256597.yrYJmMiYOr@ralph.baldwin.cx> User-Agent: KMail/4.14.10 (FreeBSD/11.1-STABLE; KDE/4.14.30; amd64; ; ) In-Reply-To: <201805231045.w4NAjWsv059104@repo.freebsd.org> References: <201805231045.w4NAjWsv059104@repo.freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 May 2018 16:49:33 -0000 On Wednesday, May 23, 2018 10:45:32 AM Eitan Adler wrote: > Author: eadler > Date: Wed May 23 10:45:32 2018 > New Revision: 334089 > URL: https://svnweb.freebsd.org/changeset/base/334089 > > Log: > dumpon: point to better kernel debug symbols. > > The objdir is temporary, and the current example points to GENERIC. > Instead point to the installed location of the debug symbols that are > supposed to match the kernel you are using. > > PR: 223993 > Submitted by: Trond.Endrestol@ximalas.info Actually, it's better to point to the kernel in this case (kgdb /boot/kernel/kernel). Some versions of ports kgdb won't recognize kernel.debug as a kernel and treat it as a userland binary instead. > Modified: > head/sbin/dumpon/dumpon.8 > > Modified: head/sbin/dumpon/dumpon.8 > ============================================================================== > --- head/sbin/dumpon/dumpon.8 Wed May 23 10:39:02 2018 (r334088) > +++ head/sbin/dumpon/dumpon.8 Wed May 23 10:45:32 2018 (r334089) > @@ -311,11 +311,11 @@ The > can be now examined using > .Xr kgdb 1 : > .Pp > -.Dl # kgdb /usr/obj/sys/GENERIC/kernel.debug vmcore.# > +.Dl # kgdb /usr/lib/debug/boot/kernel/kernel.debug vmcore.# > .Pp > or shorter: > .Pp > -.Dl # kgdb -n # /usr/obj/sys/GENERIC/kernel.debug > +.Dl # kgdb -n # /usr/lib/debug/boot/kernel/kernel.debug > .Pp > The core was decrypted properly if > .Xr kgdb 1 > -- John Baldwin