Denys Vlasenko 114aefd618 Pass addr=0 instead of 1 into restarting ptrace calls
While we are at it, fold do_ptrace into its lone caller.
We no longer set tcp->ptrace_errno = ESRCH on ESRC error in upeek.
Other code paths where ptrace fails wern't doing it, and the code which
checks tcp->ptrace_errno even assumes it is never set to ESRCH.
(It was me who added this code sometime ago, so it was my fault
that it was a bit messy)

I ran sigkill_rain test and verified that unfinished syscalls are
still handled correctly.

* util.c (ptrace_restart): Do not pass addr=1 to ptrace(), pass 0 instead.
I have no idea why we were passing 1. Ptrace documentation says
that addr parameter is ignored.
(do_ptrace): Remove this function.
(upeek): Use ptrace() instead of do_ptrace().
* defs.h: Remove do_ptrace() declaration.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
2012-03-08 12:13:44 +01:00
2011-03-14 15:39:36 +00:00
2011-03-14 15:32:38 +00:00
2012-02-25 15:41:21 +00:00
2012-02-25 02:24:03 +01:00
2009-07-08 21:01:21 +00:00
2012-02-25 15:41:21 +00:00
2002-03-31 18:43:00 +00:00
2012-03-08 11:54:10 +01:00
2011-03-15 15:46:52 +00:00
2009-09-18 12:07:03 +00:00
2012-02-27 14:37:48 +01:00
2012-02-25 15:29:21 +01:00
2012-02-25 15:41:21 +00:00
2012-02-25 15:41:21 +00:00
2012-02-25 15:41:21 +00:00
2012-02-25 15:41:21 +00:00
2012-02-27 13:56:59 +01:00
2011-03-14 15:39:36 +00:00
2012-02-25 15:41:21 +00:00
2012-02-27 14:37:48 +01:00
2012-02-25 15:41:21 +00:00
2012-02-25 15:29:21 +01:00
2009-07-08 21:01:21 +00:00
2012-02-27 14:37:48 +01:00
2012-02-25 02:24:03 +01:00
2012-02-25 15:41:21 +00:00
2009-09-18 12:07:03 +00:00
2012-02-25 15:41:21 +00:00
2012-02-25 15:29:21 +01:00
2012-03-08 11:54:10 +01:00
2012-02-25 15:29:21 +01:00
2012-02-25 15:41:21 +00:00
2012-03-08 11:54:10 +01:00
2012-02-25 15:41:21 +00:00
2012-02-25 15:41:21 +00:00
2012-02-25 15:41:21 +00:00
2001-07-10 13:48:44 +00:00
1999-02-19 00:21:36 +00:00

This is strace, a system call tracer for Linux.

strace is released under a Berkeley-style license at the request
of Paul Kranenburg; see the file COPYRIGHT for details.

See the file CREDITS for a list of authors and other contributors.

See the file INSTALL for compilation and installation instructions.

See the file NEWS for information on what has changed in recent
versions.

You can get the latest version of strace from its homepage at
http://sourceforge.net/projects/strace/ .

Please send bug reports and enhancements to the strace
mailinglist at strace-devel@lists.sourceforge.net.
Description
No description provided
Readme 17 MiB
Languages
C 92.2%
Shell 3.4%
M4 1.4%
Makefile 0.8%
Roff 0.7%
Other 1.5%