Subject: Re: PT_MEMMAP
To: Love <lha@stacken.kth.se>
From: Gregory McGarry <g.mcgarry@ieee.org>
List: tech-kern
Date: 07/24/2002 08:52:06
Love wrote:

> Gregory McGarry <g.mcgarry@ieee.org> writes:
> 
> > Love wrote:
> >  
> > > I want to add PT_MEMMAP to ptrace so gdb can get the memory mapping of a
> > > process. A implemation are available in [1]. Patches for current gdb are in
> > > [2].
> [...]
> > 
> > Do you want the memory map of the traced process or the parent process?
> 
> Of course I want the traced process, thanks. That explains why it couldn't
> dump all memory regions. :)
> 
> I added an updated patch, I changed so you can't dump your own memory
> mapping, but then you can't attach to yourself so that shouldn't be a
> problem.

I like the functionality provided by pmap(1) on Solaris.  Providing
the backing store for each mapping looks useful.  So I'd check the
Solaris interface too.  But perhaps this is beyond the scope you
intended.

	-- Gregory McGarry <g.mcgarry@ieee.org>