From owner-freebsd-arch@freebsd.org Fri Aug 28 21:19:53 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 A4D599C5253 for ; Fri, 28 Aug 2015 21:19:53 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gold.funkthat.com", Issuer "gold.funkthat.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 6A8AF994; Fri, 28 Aug 2015 21:19:53 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.14.5/8.14.5) with ESMTP id t7SLJq8Q077555 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Aug 2015 14:19:52 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.14.5/8.14.5/Submit) id t7SLJqYd077554; Fri, 28 Aug 2015 14:19:52 -0700 (PDT) (envelope-from jmg) Date: Fri, 28 Aug 2015 14:19:52 -0700 From: John-Mark Gurney To: John Baldwin Cc: "'freebsd-arch'" Subject: Re: Supporting cross-debugging vmcores in libkvm Message-ID: <20150828211952.GG33167@funkthat.com> References: <3121152.ujdxFEovO3@ralph.baldwin.cx> <20150828182705.GD33167@funkthat.com> <3887505.r5DL7PVlOf@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3887505.r5DL7PVlOf@ralph.baldwin.cx> X-Operating-System: FreeBSD 9.1-PRERELEASE amd64 X-PGP-Fingerprint: 54BA 873B 6515 3F10 9E88 9322 9CB1 8F74 6D3F A396 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.5.21 (2010-09-15) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (gold.funkthat.com [127.0.0.1]); Fri, 28 Aug 2015 14:19:52 -0700 (PDT) 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 21:19:53 -0000 John Baldwin wrote this message on Fri, Aug 28, 2015 at 13:39 -0700: > 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 can't think of a reason it would be required, but that doesn't mean someone else wouldn't need it... Though wouldn't the core parser provide the symbol lookup function? > I will need to rebase this to port the arm64 minidump support over, but > I also need people to test this. I'll see what I can do to help test it... -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not."