[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: ptrace problems




On Mon, 28 Feb 2000, Shourya Sarcar wrote:
> Programmerz,
> This is a little pair of programs I wrote. The father tries to behave
> like a debugger and get the register values of the child. But I keep on
> getting incorrect results. Rather no results at all.
> Help, someone. Anyo
hello,
	i have looked into it a bit more. I think the real solution
is to call waitpid() after ATTACH (in the parent). When the child is
stopped, wait returns. After that, you can safely extract the
register values.
						regards,
						pramode.