From owner-freebsd-current Sun Mar 2 1:22:24 2003 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8427937B401 for ; Sun, 2 Mar 2003 01:22:23 -0800 (PST) Received: from mail.gmx.net (imap.gmx.net [213.165.65.60]) by mx1.FreeBSD.org (Postfix) with SMTP id D9E5F43F93 for ; Sun, 2 Mar 2003 01:22:21 -0800 (PST) (envelope-from JunSu@gmx.net) Received: (qmail 26481 invoked by uid 0); 2 Mar 2003 09:22:18 -0000 Received: from unknown (HELO 211.161.222.154) (211.161.222.154) by mail.gmx.net (mp001-rz3) with SMTP; 2 Mar 2003 09:22:18 -0000 From: Jun Su To: Bruce Evans Subject: Re: why libkvm not implement read from user memory space Date: Sun, 2 Mar 2003 17:21:59 +0800 User-Agent: KMail/1.5 Cc: freebsd-current@FreeBSD.ORG References: <20030302195626.K29542-100000@gamplex.bde.org> In-Reply-To: <20030302195626.K29542-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303021721.59602.JunSu@gmx.net> Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday 02 March 2003 17:12, Bruce Evans wrote: > On Sun, 2 Mar 2003, Jun Su wrote: > > I am adding some new feature to the kgdb. I am not sure why the libkvm > > doesn't implement reading from memory space when checking core dump. Who > > can give some comments on this? If it is possible, I will try to > > implement it. > > It was lost when libkvm was converted to use procfs (reading from > /proc//mem instead of from kmem). procfs is often considered > harmful for even more reasons than this, but replacing it by sysctls > tends to break support for dead kernels even more since sysctl() is > completely unlike read(). > > Bruce We can use the same method which libkvm read kernel memory space when in core dump to implemt the same thing for user memory space. Currently, I am cosidering the feature for debug core dump or debug remote machine more than debug /dev/mem. I think it is possible. Am I right? Jun To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message