From owner-freebsd-arch@freebsd.org Fri Aug 28 20:52:54 2015 Return-Path: Delivered-To: freebsd-arch@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 28EFE9C48D1 for ; Fri, 28 Aug 2015 20:52:54 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 071AB889 for ; Fri, 28 Aug 2015 20:52:54 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 1ED79B93C; Fri, 28 Aug 2015 16:52:53 -0400 (EDT) From: John Baldwin To: John-Mark Gurney Cc: 'freebsd-arch' Subject: Re: Supporting cross-debugging vmcores in libkvm Date: Fri, 28 Aug 2015 13:39:31 -0700 Message-ID: <3887505.r5DL7PVlOf@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-PRERELEASE; KDE/4.14.3; amd64; ; ) In-Reply-To: <20150828182705.GD33167@funkthat.com> References: <3121152.ujdxFEovO3@ralph.baldwin.cx> <20150828182705.GD33167@funkthat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Fri, 28 Aug 2015 16:52:53 -0400 (EDT) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Aug 2015 20:52:54 -0000 On Friday, August 28, 2015 11:27:05 AM John-Mark Gurney wrote: > John Baldwin wrote this message on Tue, Aug 04, 2015 at 10:56 -0700: > How will we prevent native only aware apps from getting confused when > accessing non-native cores? Will kvm_openfiles fail for non-native > cores? or will kvm_read fail for non-native cores? kvm_openfiles() will fail. kvm_open2() will fail for a non-native core if a symbol resolving routine is not supplied. One API question I had is if it would be useful to allow a void * cookie to be passed to the symbol resolving routine (the same cookie would be passed to kvm_open2() and stored internally to be passed on each resolution request). I think in practice we don't need that level of complexity though (my kgdb changes did not). I will need to rebase this to port the arm64 minidump support over, but I also need people to test this. -- John Baldwin