Date: Sun, 2 Mar 2003 17:21:59 +0800 From: Jun Su <JunSu@gmx.net> To: Bruce Evans <bde@zeta.org.au> Cc: freebsd-current@FreeBSD.ORG Subject: Re: why libkvm not implement read from user memory space Message-ID: <200303021721.59602.JunSu@gmx.net> In-Reply-To: <20030302195626.K29542-100000@gamplex.bde.org> References: <20030302195626.K29542-100000@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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/<pid>/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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303021721.59602.JunSu>