[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: running "pmap" on a short-lived process?



On Sat, 3 Feb 2007, Arjan van de Ven wrote:

> On Sat, 2007-02-03 at 04:11 -0500, Robert P. J. Day wrote:
> >   perhaps i'm missing the point here but, for those of you who have a
> > copy of robert love's kernel book, on p. 260, he demonstrates the use
> > of "pmap" to examine a process' address space.  but he does it on a
> > trivial example:
> >
> > int main()
> > [
> > 	return 0;
> > }
> >
> >   he then runs the command:
> >
> >   $ cat /proc/1426/maps
> >
> > where 1426 is apparently the PID of the sample process.  but how
> > is it that he can check that process when it would run and finish
> > almost immediately?  or am i misreading something?
> >
>
> you can run the thing in gdb and put a breakpoint on main ;)

all right, that makes sense, he just doesn't mention that.  thanks.

rday

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/