]> granicus.if.org Git - strace/log
strace
15 years ago* process.c (printwaitn): Add comment about wait4() pid expansion.
Denys Vlasenko [Mon, 26 Jan 2009 19:09:35 +0000 (19:09 +0000)]
* process.c (printwaitn): Add comment about wait4() pid expansion.
Use #ifdef ALPHA instead of LINUX_64BIT, it was misleading
(by implying "any 64-bit platform").
* defs.h: Remove now-unused LINUX_64BIT define.
* resource.c (sys_osf_getrusage): Fix indentation.

15 years agofix fallout from recent tcb table expansion error handling change
Denys Vlasenko [Mon, 26 Jan 2009 12:55:40 +0000 (12:55 +0000)]
fix fallout from recent tcb table expansion error handling change

15 years agosyscall.c (get_scno): Fix warnings about unused 'pid' variable
Denys Vlasenko [Fri, 23 Jan 2009 16:30:26 +0000 (16:30 +0000)]
syscall.c (get_scno): Fix warnings about unused 'pid' variable

15 years agoBy Michal Nowak <mnowak@redhat.com>:
Denys Vlasenko [Fri, 23 Jan 2009 16:10:22 +0000 (16:10 +0000)]
By Michal Nowak <mnowak@redhat.com>:
* mem.c (print_ldt_entry): Fix warning:
Format '%#08lx' expects type 'long unsigned int', but
argument 2 was type 'unsigned int'.

15 years ago* strace.c (collect_stopped_tcbs): Do not return NULL when ECHILD
Denys Vlasenko [Wed, 21 Jan 2009 19:05:43 +0000 (19:05 +0000)]
* strace.c (collect_stopped_tcbs): Do not return NULL when ECHILD
is detected, return collected list instead. Fixes symptom when
the last "+++ killed by SIGxxx +++" is not printed.

15 years agoTwo cleanups: tcb table expansion failure is not really a survivable
Denys Vlasenko [Sat, 17 Jan 2009 01:52:54 +0000 (01:52 +0000)]
Two cleanups: tcb table expansion failure is not really a survivable
event, we do not have any viable way to continue. No wonder most
places where that is detected have FIXMEs.
It's way simpler to treat as fatal failure, and handle it inside
tcb table expansion finctions.
Second cleanup: tidy up haphazard locations of a few externs.

* defs.h: Change return type of expand_tcbtab() to void.
Declare change_syscall().
* process.c: Change all callsites of alloctcb(), alloc_tcb() and
fork_tcb(), removing now-redundant error checks.
(fork_tcb): Change return type to void - it can't fail now.
* strace.c: Move extern declarations out of function bodies.
Change all callsites of alloctcb(), alloc_tcb() and
fork_tcb(), removing now-redundant error checks.
(expand_tcbtab): Change return type to void - it can't fail now.
On failure to expand, print a message, clean up, and exit.
(alloc_tcb): On failure to expand, print a message, clean up, and exit.
* util.c (setbpt): Remove extern declaration from function body.

15 years ago* defs.h: Update a comment. No code changes.
Denys Vlasenko [Sat, 17 Jan 2009 01:06:18 +0000 (01:06 +0000)]
* defs.h: Update a comment. No code changes.
* strace.c (handle_stopped_tcbs): Discard all execve stops
and clear TCB_WAITEXECVE bit.
* syscall.c (get_scno): Add the code to not mistakenly
treat ptrace stop as execve stop (execve stops can be blocked
by traced program).
Fixes RH#477775 "strace hangs if the target process blocks SIGTRAP".

15 years ago* process.c: Add a comment. No code changes.
Denys Vlasenko [Sat, 17 Jan 2009 00:21:31 +0000 (00:21 +0000)]
* process.c: Add a comment. No code changes.
* strace.c (collect_stopped_tcbs): Stop reversing list of stopped
tcp's. I'm not totally convinced it is crucial, but this is surely
fits the concept of "least surprise".
Do not collect TCB_SUSPENDED tcp's (this is closer to how
it was before).
(handle_stopped_tcbs): Remove the code to reject TCB_SUSPENDED tcp's,
it's done earlier now. In an unobvious way, this was causing
SIGSTOPs from freshly attached children to be misinterpreted.

15 years ago* linux/bfin/syscallent.h: sys_futex has 6 parameters, not 5.
Denys Vlasenko [Wed, 14 Jan 2009 14:29:45 +0000 (14:29 +0000)]
* linux/bfin/syscallent.h: sys_futex has 6 parameters, not 5.

15 years agoFixes for ptrace() argument parsing.
Denys Vlasenko [Tue, 13 Jan 2009 18:30:55 +0000 (18:30 +0000)]
Fixes for ptrace() argument parsing.
* process.c: Add parsing of PTRACE_SETOPTIONS, PTRACE_GETEVENTMSG,
PTRACE_GETSIGINFO, PTRACE_SETSIGINFO.
* strace.c (handle_stopped_tcbs): Make PTRACE_SETOPTIONS
define check more robust.
* defs.h: Declare several "extern const struct xlat" arrays here.
* desc.c: Remove open_mode_flags[] and open_access_modes[]
extern declarations.
* net.c: Remove open_mode_flags[] extern declaration.
* sock.c: Remove addrfams[] extern declaration.
* util.c: Remove struct_user_offsets[] extern declaration.
* signal.c: Remove open_mode_flags[] extern declaration.

15 years ago* defs.h: Add new struct tcb fields: wait_status, next_need_service.
Denys Vlasenko [Fri, 9 Jan 2009 17:22:56 +0000 (17:22 +0000)]
* defs.h: Add new struct tcb fields: wait_status, next_need_service.
make flags field wider (ints are easier to work with on many CPUs).
* strace.c (trace): Split this function into two:
collect_stopped_tcbs() and handle_stopped_tcbs().
Now we collect *all* waitable tasks, then handle them all,
then repeat.
Fixes RH#478419 "Some threads stop when strace with -f option
is executed on a multi-thread process"
* test/many_looping_threads.c: example program which cna't be straced
successfully without this fix.

15 years agoOutput format fixes, improving the situation after recent
Denys Vlasenko [Tue, 6 Jan 2009 21:45:06 +0000 (21:45 +0000)]
Output format fixes, improving the situation after recent
change which added better handling of processes suddenly
disappearing. Now we often do not finish last line
before exiting in those cases.
The only change affecting something other than output
is change in umovestr where we were calling
abort() on ptrace error.

* strace.c (trace): If trace_syscall() failed with ESRCH,
finish current output line with " <unfinished ...>".
(mp_ioctl): While we are at it, fix gross style mismatch
in this function definition. No code chages.
* syscall.c (trace_syscall): If decode fails on syscall exit,
finish current output line with "= ? <unavailable>".
* util.c (umoven): Do not complain if error is ESRCH.
(umovestr): Do not complain and do not abort() if error is ESRCH.
* defs.h: Remove unused tcp parameter from printtrailer().
* process.c: Adjust printtrailer() calls accordingly.
* strace.c: Adjust printtrailer() calls accordingly.
* syscall.c: Adjust printtrailer() calls accordingly.

15 years ago* desc.c (printflock): Fix display of fcntl(F_SETLK) on
Denys Vlasenko [Tue, 6 Jan 2009 15:12:52 +0000 (15:12 +0000)]
* desc.c (printflock): Fix display of fcntl(F_SETLK) on
non-native 32-bit architecture.
Fixes RH#471169 "format fcntl64() system calls for
32 bit application incorrect".

* desc.c: const'ify two static struct xlat vector[]'s,
convert all remaining old style C parameter declarations
in this file.

15 years ago* syscall.c: more cosmetics. fixed a few localized style discrepancies.
Denys Vlasenko [Fri, 2 Jan 2009 18:10:08 +0000 (18:10 +0000)]
* syscall.c: more cosmetics. fixed a few localized style discrepancies.
The only actual code change is a trivial one where
a char *array[] made const and static.

15 years ago* defs.h, syscall.c: explain why x86 does not need TCB_WAITEXECVE trick,
Denys Vlasenko [Fri, 2 Jan 2009 18:02:45 +0000 (18:02 +0000)]
* defs.h, syscall.c: explain why x86 does not need TCB_WAITEXECVE trick,
and what syscall_fixup() is expected to do. Comments only, no code changes.

15 years ago* strace.c: Fix compile failure: on some systems PTRACE_O_xxx
Denys Vlasenko [Fri, 2 Jan 2009 16:55:24 +0000 (16:55 +0000)]
* strace.c: Fix compile failure: on some systems PTRACE_O_xxx
and PTRACE_EVENT_xxx constants are not defined.

15 years agotrailing whitespace removal, no code changes
Denys Vlasenko [Fri, 2 Jan 2009 13:03:44 +0000 (13:03 +0000)]
trailing whitespace removal, no code changes

15 years ago2008-11-13 Kirill A. Shutemov <kirill@shutemov.name>
Dmitry V. Levin [Thu, 1 Jan 2009 23:23:47 +0000 (23:23 +0000)]
2008-11-13  Kirill A. Shutemov  <kirill@shutemov.name>

* linux/arm/syscallent.h: Update syscalls.
Based on patch by Enrico Scholz.

15 years ago2008-11-13 Kirill A. Shutemov <kirill@shutemov.name>
Dmitry V. Levin [Thu, 1 Jan 2009 23:20:38 +0000 (23:20 +0000)]
2008-11-13  Kirill A. Shutemov  <kirill@shutemov.name>

* linux/arm/syscallent.h: Fix build on ARM EABI which does not
provide syscalls socketcall and ipc.

15 years ago2009-01-01 Andreas Schwab <schwab@suse.de>
Dmitry V. Levin [Thu, 1 Jan 2009 22:47:51 +0000 (22:47 +0000)]
2009-01-01  Andreas Schwab  <schwab@suse.de>

* net.c (sys_accept): Properly decode third argument as pointer to
int.

15 years agoExperimental support for -D option.
Denys Vlasenko [Tue, 30 Dec 2008 20:51:30 +0000 (20:51 +0000)]
Experimental support for -D option.
Unlike normal case, with -D *grandparent* process exec's,
becoming a traced process. Child exits (this prevents traced process
from having children it doesn't expect to have), and grandchild
attaches to grandparent similarly to strace -p PID.
This allows for more transparent interaction in cases
when process and its parent are communicating via signals,
wait() etc. Without -D, strace process gets lodged in between,
disrupting parent<->child link.

* strace.c: Add global flag variable daemonized_tracer for -D option.
(startup_attach): If -D, fork and block parent in pause().
In this case we are already a child, we in fact created a grandchild.
After attaching to grandparent, grandchild SIGKILLs parent.
(startup_child): If -D, parent blocks in wait(), then
execs the program to strace. Normally (w/o -D), it is child
who execs the program.
(main): Detect -D option, call startup_attach() if it is given.

15 years agoFixing many instances of broken indentation with spaces instead of tabs.
Denys Vlasenko [Tue, 30 Dec 2008 18:47:55 +0000 (18:47 +0000)]
Fixing many instances of broken indentation with spaces instead of tabs.
No code changes.

15 years agoPatch by Kirill A. Shutemov:
Denys Vlasenko [Tue, 30 Dec 2008 17:50:46 +0000 (17:50 +0000)]
Patch by Kirill A. Shutemov:
Fix some warnings on ARM build.
* defs.h: include <sys/ptrace.h> on arm too.
* syscall.c: EABI arm does not need decode_subcall(), ifdef it out.

15 years ago* linux/syscallent.h: Mark sendfile(2) as network syscall.
Denys Vlasenko [Mon, 29 Dec 2008 20:04:15 +0000 (20:04 +0000)]
* linux/syscallent.h: Mark sendfile(2) as network syscall.
* linux/*/syscallent.h: Same, for all architectures.

15 years ago* defs.h: Remove sigtrap80 field from struct tcb.
Denys Vlasenko [Mon, 29 Dec 2008 19:13:27 +0000 (19:13 +0000)]
* defs.h: Remove sigtrap80 field from struct tcb.
* strace.c: Add ptrace_stop_sig static variable
and use it in place of tcp->sigtrap80.
Add ptrace_opts_set static flag variable.
(trace): Set ptrace options once, not per-process.
If unexpected SIGTRAP is later received,
revert back to using SIGTRAP
(assume old, broken kernel).

15 years agoFix build breakage from my previous commit.
Denys Vlasenko [Tue, 23 Dec 2008 16:14:42 +0000 (16:14 +0000)]
Fix build breakage from my previous commit.
 Now I test for PT_SETOPTIONS being #defined.
Remove trailing whitespace.
No actual code changes.

15 years agoMake strace correctly handle SIGTRAP produced by e.g.
Denys Vlasenko [Mon, 22 Dec 2008 19:14:47 +0000 (19:14 +0000)]
Make strace correctly handle SIGTRAP produced by e.g.
kill(2) and by trapping instruction.
* defs.h: Add sigtrap80 field to struct tcb.
* strace.c (alloc_tcb): Initialize it to SIGTRAP.
(detach): Use tcp->sigtrap80 instead of SIGTRAP constant.
(trace): Attempt to set PTRACE_O_TRACESYSGOOD and
PTRACE_O_TRACEEXEC options on each newly attached process,
distinquish between SIGTRAP and (SIGTRAP | 0x80) stops.
Fixes RH#162774 "strace ignores int3 SIGTRAP".

15 years agoMake strace somewhat resilient against process disappearing
Denys Vlasenko [Wed, 17 Dec 2008 19:21:59 +0000 (19:21 +0000)]
Make strace somewhat resilient against process disappearing
under its claws. Prime example is sudden SIGKILL.
Fixes RH#472053

15 years agotwo instances of s/sa_handler == SIG_DFL/sa_handler == SIG_IGN/
Denys Vlasenko [Wed, 17 Dec 2008 17:22:03 +0000 (17:22 +0000)]
two instances of s/sa_handler == SIG_DFL/sa_handler == SIG_IGN/

15 years agoThis patch does not change any logic.
Denys Vlasenko [Tue, 16 Dec 2008 18:18:40 +0000 (18:18 +0000)]
This patch does not change any logic.

It merely passes tcp pointer to upeek instead of pid.
This is needed if one wants to check or change
some tcp fields.

I have patches which require this. I can imagine someone else
eventually needing to look at tcp for completely orthogonal reasons.

15 years ago2008-11-11 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 10 Dec 2008 13:51:40 +0000 (13:51 +0000)]
2008-11-11  Dmitry V. Levin  <ldv@altlinux.org>

* sock.c [LINUX] (sock_ioctl): Parse more SIOCS* ioctls.

15 years agoAdd RH# bugzilla tags
Dmitry V. Levin [Wed, 10 Dec 2008 13:47:22 +0000 (13:47 +0000)]
Add RH# bugzilla tags

15 years ago.
Roland McGrath [Wed, 10 Dec 2008 06:09:34 +0000 (06:09 +0000)]
.

15 years ago2008-12-09 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 10 Dec 2008 06:09:29 +0000 (06:09 +0000)]
2008-12-09  Roland McGrath  <roland@redhat.com>

* strace.1 (DIAGNOSTICS): New section, describe exit behavior.

15 years agomanpage: document new feature of propagating exit code/signal death status.
Denys Vlasenko [Tue, 9 Dec 2008 14:15:56 +0000 (14:15 +0000)]
manpage: document new feature of propagating exit code/signal death status.

15 years agovda tests his commit powers by removing trailing whitespace from a test
Denys Vlasenko [Tue, 9 Dec 2008 14:02:59 +0000 (14:02 +0000)]
vda tests his commit powers by removing trailing whitespace from a test

16 years ago2008-11-09 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Tue, 11 Nov 2008 00:25:22 +0000 (00:25 +0000)]
2008-11-09  Dmitry V. Levin  <ldv@altlinux.org>

* process.c (prctl_options): Update constants from linux 2.6.27.

16 years ago2008-11-09 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Tue, 11 Nov 2008 00:21:09 +0000 (00:21 +0000)]
2008-11-09  Dmitry V. Levin  <ldv@altlinux.org>

* system.c (capabilities): Add more capability values.

16 years ago2008-11-09 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Mon, 10 Nov 2008 23:19:13 +0000 (23:19 +0000)]
2008-11-09  Dmitry V. Levin  <ldv@altlinux.org>

* util.c (string_quote): Fix support for NUL-terminated string.
Add comments.
(printpathn): Fix the case when "..." was appended to the output
but no truncation was actually made.  Add comments.
(printstr): Fix memory allocation.  Fix two cases when "..." was
appended to the output but no truncation was actually made.
Add comments.

16 years ago2008-10-23 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Mon, 10 Nov 2008 22:53:02 +0000 (22:53 +0000)]
2008-10-23  Dmitry V. Levin  <ldv@altlinux.org>

Implement parsers for new linux syscalls.
* desc.c (do_dup2, [LINUX] sys_dup3): New functions.
(sys_dup2): Use do_dup2.
[LINUX] (sys_epoll_create1): New function.
[LINUX] (do_eventfd, sys_eventfd2): New functions.
[LINUX] (sys_eventfd): Use do_eventfd.
* net.c (do_pipe, [LINUX] sys_pipe2): New functions.
(sys_pipe): Use do_pipe.
* signal.c [LINUX] (do_signalfd, sys_signalfd4): New functions.
[LINUX] (sys_signalfd): Use do_signalfd.
* linux/syscall.h: Declare new sys_* functions.
* linux/syscallent.h: Hook up signalfd4, eventfd2, epoll_create1,
dup3, pipe2, inotify_init1.
* linux/x86_64/syscallent.h: Hook up paccept, signalfd4, eventfd2,
epoll_create1, dup3, pipe2, inotify_init1.

16 years ago2008-10-23 Mike Frysinger <vapier@gentoo.org>
Dmitry V. Levin [Mon, 10 Nov 2008 22:21:41 +0000 (22:21 +0000)]
2008-10-23  Mike Frysinger  <vapier@gentoo.org>

Port strace to the Blackfin architecture.
* configure.ac: Add bfin to supported architectures.
* process.c: Skip u_fpvalid/u_fpstate for Blackfin architecture.
(change_syscall): Support Blackfin architecture.
* syscall.c: Declare r0 for Blackfin architecture.
(get_scno): Decode Blackfin syscall number.
(syscall_fixup): Extract Blackfin return value.
(get_error): Decode Blackfin return value.
(force_result): Poke Blackfin return value.
(syscall_enter): Extract Blackfin syscall arguments.
* defs.h: Define TCB_WAITEXECVE for Blackfin architecture.
* linux/syscall.h (sys_sram_alloc): Declare for Blackfin
architecture.
* system.c (sys_sram_alloc): Decode Blackfin sram_alloc() syscall.
* util.c (getpc): Handle PC on Blackfin architecture.
(printcall): Likewise.
* linux/bfin/ioctlent.h, linux/bfin/syscallent.h: New Blackfin
headers.
* Makefile.am (EXTRA_DIST): Add linux/bfin/ioctlent.h and
linux/bfin/syscallent.h.

16 years ago2008-09-18 Mike Frysinger <vapier@gentoo.org>
Dmitry V. Levin [Mon, 10 Nov 2008 17:34:26 +0000 (17:34 +0000)]
2008-09-18  Mike Frysinger <vapier@gentoo.org>

* configure.ac: Accept uclinux hosts as linux.

16 years ago2008-10-22 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Mon, 10 Nov 2008 17:21:23 +0000 (17:21 +0000)]
2008-10-22  Dmitry V. Levin <ldv@altlinux.org>

Handle socket type flags introduced in linux 2.6.27.
* net.c (socktypes): Add SOCK_DCCP.
(sock_type_flags): New xlat structure.
(tprint_sock_type): New function.
(sys_socket, sys_socketpair): Use it to parse socket type and
socket type flags.

16 years ago2008-09-29 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Mon, 10 Nov 2008 17:14:58 +0000 (17:14 +0000)]
2008-09-29  Dmitry V. Levin <ldv@altlinux.org>

* strace.c (startup_child): Save child pid for future use.
(main): Exit/kill ourself with straced child's exitcode/signal.
(trace): If signalled process pid matches the saved child pid,
save the signal number.  If terminated process pid matches the
saved child pid, save its exit status.
Patch from Denys Vlasenko <dvlasenk@redhat.com>

16 years ago2008-09-12 Tomas Pospisek <tpo@sourcepole.ch>
Jan Kratochvil [Fri, 12 Sep 2008 08:44:30 +0000 (08:44 +0000)]
2008-09-12  Tomas Pospisek  <tpo@sourcepole.ch>
    Jan Kratochvil  <jan.kratochvil@redhat.com>

* strace.1 (DESCRIPTION): New description of unfinished system calls
and system calls restarting.

16 years ago2008-04-19 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 3 Sep 2008 01:22:18 +0000 (01:22 +0000)]
2008-04-19  Dmitry V. Levin <ldv@altlinux.org>

* desc.c (sys_fcntl): Do not initialize auxstr for failed syscall.
* process.c (sys_fork, sys_rfork) [USE_PROCFS]: Likewise.
* signal.c (sys_signal): Likewise.
* stream.c (internal_stream_ioctl): Likewise.
* time.c (sys_adjtimex): Likewise.
* syscall.c (trace_syscall): If RVAL_STR is set, then
print auxstr for failed syscall as well.

16 years ago2008-04-19 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 3 Sep 2008 01:02:46 +0000 (01:02 +0000)]
2008-04-19  Dmitry V. Levin <ldv@altlinux.org>

* syscall.c (is_restart_error): New function.
* defs.h (is_restart_error): Declare it.

* linux/dummy.h (sys_nanosleep): Uncouple from sys_adjtime().
* time.c (sys_nanosleep): New function, based on is_restart_error().

16 years ago2008-04-19 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 3 Sep 2008 00:56:52 +0000 (00:56 +0000)]
2008-04-19  Dmitry V. Levin <ldv@altlinux.org>

* process.c (sys_prctl): Decode PR_SET_PDEATHSIG, PR_GET_PDEATHSIG,
PR_SET_DUMPABLE, PR_GET_DUMPABLE, PR_SET_KEEPCAPS, PR_GET_KEEPCAPS.
Fix PR_GET_UNALIGN decoder.

16 years ago2008-04-19 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 3 Sep 2008 00:54:40 +0000 (00:54 +0000)]
2008-04-19  Dmitry V. Levin <ldv@altlinux.org>

* process.c (prctl_options): Add more constants.

16 years ago2008-04-19 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 3 Sep 2008 00:52:47 +0000 (00:52 +0000)]
2008-04-19  Dmitry V. Levin <ldv@altlinux.org>

* linux/syscallent.h: Use sys_prctl() decoder for "prctl" syscall.
* linux/alpha/syscallent.h: Likewise.
* linux/arm/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sh/syscallent.h: Likewise.
* linux/sh64/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.

16 years ago2008-09-02 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Wed, 3 Sep 2008 00:45:10 +0000 (00:45 +0000)]
2008-09-02  Dmitry V. Levin <ldv@altlinux.org>

* linux/x86_64/syscallent.h: Fix syscall numbers for "tee" and
"sync_file_range".
From Fernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>

16 years ago.
Roland McGrath [Thu, 28 Aug 2008 23:42:06 +0000 (23:42 +0000)]
.

16 years ago2008-08-28 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 28 Aug 2008 23:41:57 +0000 (23:41 +0000)]
2008-08-28  Roland McGrath  <roland@redhat.com>

* strace.1 (BUGS): New section, mention SIGTRAP interference.

16 years ago.
Roland McGrath [Thu, 28 Aug 2008 23:26:29 +0000 (23:26 +0000)]
.

16 years ago2008-08-28 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 28 Aug 2008 23:26:21 +0000 (23:26 +0000)]
2008-08-28  Roland McGrath  <roland@redhat.com>

* strace.spec (%ifarch %{strace64_arches}): Use cp -p instead of ln
for %{rhel} < 6.

16 years agoPrepare for 4.5.18 release v4.5.18
Roland McGrath [Thu, 28 Aug 2008 22:00:46 +0000 (22:00 +0000)]
Prepare for 4.5.18 release

16 years ago.
Roland McGrath [Mon, 25 Aug 2008 03:16:27 +0000 (03:16 +0000)]
.

16 years ago2008-08-24 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 25 Aug 2008 03:16:26 +0000 (03:16 +0000)]
2008-08-24  Roland McGrath  <roland@redhat.com>

* syscall.c (trace_syscall): Conditionalize on [SYS_socket_subcall]
and [SYS_ipc_subcall] individually.

16 years ago2008-08-24 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 25 Aug 2008 03:15:43 +0000 (03:15 +0000)]
2008-08-24  Roland McGrath  <roland@redhat.com>

* linux/syscall.h (SYS_socket_subcall et al, SYS_ipc_subcall et al):
Don't define these if [__ARM_EABI__].
Reported by Johannes Stezenbach <js@sig21.net>.

16 years ago.
Roland McGrath [Mon, 25 Aug 2008 03:09:18 +0000 (03:09 +0000)]
.

16 years ago2008-08-24 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 25 Aug 2008 03:09:16 +0000 (03:09 +0000)]
2008-08-24  Roland McGrath  <roland@redhat.com>

* linux/powerpc/syscallent.h: Handle subpage_prot.
* mem.c [LINUX && POWERPC] (sys_subpage_prot): New function.
* linux/syscall.h [POWERPC]: Declare it.
From Simon Murray <simon@transitive.com>.

16 years ago.
Roland McGrath [Mon, 25 Aug 2008 03:00:49 +0000 (03:00 +0000)]
.

16 years ago2008-08-24 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 25 Aug 2008 03:00:47 +0000 (03:00 +0000)]
2008-08-24  Roland McGrath  <roland@redhat.com>

* mem.c (mmap_prot): Handle PROT_SAO.
From Simon Murray <simon@transitive.com>.

16 years ago.
Roland McGrath [Mon, 25 Aug 2008 02:59:39 +0000 (02:59 +0000)]
.

16 years ago2008-08-24 Roland McGrath <roland@redhat.com>
Roland McGrath [Mon, 25 Aug 2008 02:59:36 +0000 (02:59 +0000)]
2008-08-24  Roland McGrath  <roland@redhat.com>

* mem.c (madvise_flags): Typo fixes.  Rename to madvise_cmds.
(sys_madvise): Use printxval, not printflags.
Reported by Rajeev V. Pillai <rajeevvp@gmail.com>.

16 years ago.
Roland McGrath [Wed, 20 Aug 2008 01:59:42 +0000 (01:59 +0000)]
.

16 years ago2008-08-19 Roland McGrath <roland@redhat.com>
Roland McGrath [Wed, 20 Aug 2008 01:59:40 +0000 (01:59 +0000)]
2008-08-19  Roland McGrath  <roland@redhat.com>

* signal.c (sys_sigaction, sys_rt_sigaction): Don't omit the rest of
the struct after sa_handler is a known constant.  Some sa_flags bits
have meaning even for SIG_IGN/SIG_DFL.

16 years ago.
Jan Kratochvil [Wed, 6 Aug 2008 21:43:53 +0000 (21:43 +0000)]
.

16 years ago2008-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
Jan Kratochvil [Wed, 6 Aug 2008 21:43:35 +0000 (21:43 +0000)]
2008-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>

* util.c (CLONE_VM): Define if not defined already.
(setbpt): Clear CLONE_VM in the case we already clear CLONE_VFORK for
SYS_clone and SYS_clone2.
Reported by Michal Nowak.
Fixes RH#455078.

16 years ago.
Jan Kratochvil [Wed, 6 Aug 2008 21:39:51 +0000 (21:39 +0000)]
.

16 years ago2008-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
Jan Kratochvil [Wed, 6 Aug 2008 21:38:52 +0000 (21:38 +0000)]
2008-08-06  Jan Kratochvil  <jan.kratochvil@redhat.com>

Fix compiler warnings.
* signal.c (sys_signal): Cast to SIG_* to the matching type LONG.
* strace.c (trace): Variables PSR and PC are now signed.
* syscall.c (syscall_enter): Variable RBS_END is now signed long.
Remove/add the RBS_END casts appropriately.
* util.c [IA64] (arg_setup): Variable BSP is now signed long.
Remove/add the BSP casts appropriately.
<ia32>: Initialize *STATE.

16 years ago.
Roland McGrath [Fri, 1 Aug 2008 01:15:27 +0000 (01:15 +0000)]
.

16 years ago2008-07-31 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 1 Aug 2008 01:15:24 +0000 (01:15 +0000)]
2008-07-31  Roland McGrath  <roland@redhat.com>

* Makefile.am (EXTRA_DIST): Add new linux/arm/ files.

16 years ago.
Roland McGrath [Fri, 1 Aug 2008 01:13:30 +0000 (01:13 +0000)]
.

16 years ago2008-07-31 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 1 Aug 2008 01:13:10 +0000 (01:13 +0000)]
2008-07-31  Roland McGrath  <roland@redhat.com>

* file.c [LINUX] (struct kernel_dirent): Define it locally,
do not use <linux/dirent.h>.
Fixes RH#457291.

16 years ago.
Roland McGrath [Fri, 1 Aug 2008 01:06:40 +0000 (01:06 +0000)]
.

16 years ago2008-07-31 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 1 Aug 2008 01:06:31 +0000 (01:06 +0000)]
2008-07-31  Roland McGrath  <roland@redhat.com>

* configure.ac: Add AC_HEADER_STDBOOL.
* defs.h [HAVE_STDBOOL_H]: #include <stdbool.h>.
Fixes Debian##492774.

16 years ago2008-07-24 Dmitry V. Levin <ldv@altlinux.org>
Dmitry V. Levin [Fri, 25 Jul 2008 15:42:34 +0000 (15:42 +0000)]
2008-07-24  Dmitry V. Levin <ldv@altlinux.org>

* strace.c (main): Fix -F option backwards compatibility.

16 years ago.
Roland McGrath [Tue, 22 Jul 2008 08:33:45 +0000 (08:33 +0000)]
.

16 years ago2008-07-22 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 22 Jul 2008 08:33:40 +0000 (08:33 +0000)]
2008-07-22  Roland McGrath  <roland@redhat.com>

* Makefile.am (EXTRA_DIST): Add new debian/ files.

16 years ago.
Roland McGrath [Tue, 22 Jul 2008 00:43:13 +0000 (00:43 +0000)]
.

16 years ago2008-07-21 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 22 Jul 2008 00:43:09 +0000 (00:43 +0000)]
2008-07-21  Roland McGrath  <roland@redhat.com>

* configure.ac: Version 4.5.17.
* strace.spec: 4.5.17-1.

16 years ago.
Roland McGrath [Tue, 22 Jul 2008 00:30:33 +0000 (00:30 +0000)]
.

16 years ago2008-07-21 Roland McGrath <roland@redhat.com>
Roland McGrath [Tue, 22 Jul 2008 00:30:26 +0000 (00:30 +0000)]
2008-07-21  Roland McGrath  <roland@redhat.com>

* defs.h [LINUXSPARC]: Don't #include <linux/a.out.h>.

16 years ago.
Roland McGrath [Tue, 22 Jul 2008 00:27:51 +0000 (00:27 +0000)]
.

16 years ago2008-07-19 Frederik Schüler <fs@debian.org>
Roland McGrath [Tue, 22 Jul 2008 00:27:31 +0000 (00:27 +0000)]
2008-07-19  Frederik Schüler <fs@debian.org>

* debian/control: Add strace64 package.
Fixes Debian#491167, Debian#491188.
* debian/rules: Use debhelper flag --same-arch instead of --arch in
order to build strace64 only on the specified architectures.
* debian/strace64.install: New file, list for dh_install.
* debian/strace64.manpages: New file, list for dh_install.
* debian/changelog: Add prereleases entries.

16 years ago.
Roland McGrath [Tue, 22 Jul 2008 00:22:10 +0000 (00:22 +0000)]
.

16 years ago2008-07-18 Andreas Schwab <schwab@suse.de>
Roland McGrath [Tue, 22 Jul 2008 00:22:05 +0000 (00:22 +0000)]
2008-07-18  Andreas Schwab  <schwab@suse.de>

* linux/powerpc/syscallent.h: Fix argument count for request_key.

16 years ago2008-07-18 Andreas Schwab <schwab@suse.de>
Roland McGrath [Tue, 22 Jul 2008 00:22:04 +0000 (00:22 +0000)]
2008-07-18  Andreas Schwab  <schwab@suse.de>

* linux/ia64/syscallent.h: Decode mincore syscall.

16 years ago2008-07-18 Andreas Schwab <schwab@suse.de>
Roland McGrath [Tue, 22 Jul 2008 00:21:43 +0000 (00:21 +0000)]
2008-07-18  Andreas Schwab  <schwab@suse.de>

* term.c (term_ioctl): Decode indirect parameter as int, not long.

16 years ago.
Roland McGrath [Fri, 18 Jul 2008 02:21:14 +0000 (02:21 +0000)]
.

16 years ago2008-07-17 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 18 Jul 2008 02:21:11 +0000 (02:21 +0000)]
2008-07-17  Roland McGrath  <roland@redhat.com>

* NEWS, strace.spec: Updates in preparation for release.

16 years ago.
Roland McGrath [Fri, 18 Jul 2008 02:16:52 +0000 (02:16 +0000)]
.

16 years ago2008-07-17 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 18 Jul 2008 02:16:47 +0000 (02:16 +0000)]
2008-07-17  Roland McGrath  <roland@redhat.com>

* process.c (printwaitn): When current personality's wordsize is
smaller than native, sign-extend the PID argument from 32 bits.

16 years ago.
Roland McGrath [Fri, 18 Jul 2008 01:27:43 +0000 (01:27 +0000)]
.

16 years ago2008-07-17 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 18 Jul 2008 01:27:39 +0000 (01:27 +0000)]
2008-07-17  Roland McGrath  <roland@redhat.com>

* process.c (futexops): Update table.
(sys_futex): Handle FUTEX_WAIT_BITSET correctly.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#448628.

16 years ago.
Roland McGrath [Fri, 18 Jul 2008 01:24:21 +0000 (01:24 +0000)]
.

16 years ago2008-07-17 Roland McGrath <roland@redhat.com>
Roland McGrath [Fri, 18 Jul 2008 01:23:49 +0000 (01:23 +0000)]
2008-07-17  Roland McGrath  <roland@redhat.com>

* linux/syscallent.h: Fix "futex" argument count.
* linux/alpha/syscallent.h: Likewise.
* linux/arm/syscallent.h: Likewise.
* linux/hppa/syscallent.h: Likewise.
* linux/ia64/syscallent.h: Likewise.
* linux/m68k/syscallent.h: Likewise.
* linux/powerpc/syscallent.h: Likewise.
* linux/s390/syscallent.h: Likewise.
* linux/s390x/syscallent.h: Likewise.
* linux/sparc/syscallent.h: Likewise.
* linux/x86_64/syscallent.h: Likewise.
From Ulrich Drepper <drepper@redhat.com>.
Fixes RH#448629.

16 years ago.
Roland McGrath [Fri, 18 Jul 2008 01:19:39 +0000 (01:19 +0000)]
.

16 years ago2008-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
Roland McGrath [Fri, 18 Jul 2008 01:19:36 +0000 (01:19 +0000)]
2008-06-30  Jan Kratochvil  <jan.kratochvil@redhat.com>

Fix ia64 `-f' on CLONE2 formerly crashing the child.
* util.c [IA64] (restore_arg0, restore_arg1): Define as empty.
Fixes RH#453438.