* Re: ptrace probs?
2002-09-10 18:54 ptrace probs? Frank Peters
@ 2002-09-10 18:21 ` Daniel Jacobowitz
[not found] ` <008b01c25911$60c7ad10$0242a8c0@alpha.de>
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2002-09-10 18:21 UTC (permalink / raw)
To: Frank Peters; +Cc: linux-kernel
On Tue, Sep 10, 2002 at 07:54:46PM +0100, Frank Peters wrote:
> Kernel: 2.4.18
>
> If I ptrace-Attach to some program I cannot immediately peek values!
> ( I can but they are all 0) if I insert a sleep(1) after the ATTACH
> it works?
>
> Can somebody explain?
I don't see any problems here... can you post test code, showing
exactly where something goes wrong?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 3+ messages in thread
* ptrace probs?
@ 2002-09-10 18:54 Frank Peters
2002-09-10 18:21 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Frank Peters @ 2002-09-10 18:54 UTC (permalink / raw)
To: linux-kernel
Kernel: 2.4.18
If I ptrace-Attach to some program I cannot immediately peek values!
( I can but they are all 0) if I insert a sleep(1) after the ATTACH
it works?
Can somebody explain?
Frank
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: ptrace probs?
[not found] ` <008b01c25911$60c7ad10$0242a8c0@alpha.de>
@ 2002-09-10 20:41 ` Daniel Jacobowitz
0 siblings, 0 replies; 3+ messages in thread
From: Daniel Jacobowitz @ 2002-09-10 20:41 UTC (permalink / raw)
To: Frank Peters; +Cc: linux-kernel
On Tue, Sep 10, 2002 at 10:31:00PM +0100, Frank Peters wrote:
> Kernel: 2.4.18
> maybe it's a glibc prob.
Try waitpid (PID, &status, 0) first. You can't do anything until the
process stops, that's normal.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-09-10 20:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-10 18:54 ptrace probs? Frank Peters
2002-09-10 18:21 ` Daniel Jacobowitz
[not found] ` <008b01c25911$60c7ad10$0242a8c0@alpha.de>
2002-09-10 20:41 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).