Commit Graph

1397 Commits

Author SHA1 Message Date
Chris Metcalf
ff3474aa5a * mem.c (mremap_flags): Add MREMAP_FIXED 2009-12-24 23:19:19 +00:00
Mike Frysinger
5078770858 Move i386-specific files out of common linux dir
* linux/syscallent.h: Moved to ...
* linux/i386/syscallent.h: ... here.
* linux/ia64/syscallent.h: Update i386 syscallent.h include.
* linux/sparc/gen.pl: Likewise.
* linux/x86_64/syscallent1.h: Likewise.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-11-16 11:22:57 +00:00
Andreas Schwab
e5355de95c Remove support for pre-C89
* defs.h: Remove references to __STDC__ and P macros.
* strace.c: Likewise.
2009-11-16 11:16:36 +00:00
ca75bd6dff Decode more SOL_PACKET socket options
* net.c (sockpacketoptions): Add more PACKET_* entries.
(sys_getsockopt): Decode PACKET_STATISTICS.
(printsockopt): Decode PACKET_RX_RING and PACKET_TX_RING.
Patch by Gabor Gombas.
2009-11-13 14:22:42 +00:00
Andreas Schwab
46ed50d569 Ignore errors if a thread is killed
* util.c (clearbpt): Ignore ESRCH error.
2009-11-11 13:54:04 +01:00
Bernhard Reutner-Fischer
9906e6da8b Fix handling of Linux systems without struct statfs64
* acinclude.m4 (AC_STATFS64): New macro to check for struct statfs64.
* configure.ac: Call AC_STATFS64.
* file.c (printstatfs64, sys_statfs64, sys_fstatfs64): Compile only
  if struct statfs64 is available.

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
2009-11-06 21:01:28 +00:00
3128919301 Fix getsockopt decoding on architectures where sizeof(long) > sizeof(int)
* net.c (sys_getsockopt): Optimize output a bit.
Decode integer argument using printnum_int(), patch by Gabor Gombas.
2009-11-06 18:16:12 +00:00
62e0596dbd Check umove() return code
* bjm.c (sys_query_module): Print input parameters when entering
syscall.  Fix handling of syscall error.  Handle unlikely umove()
failures.
* ipc.c (tprint_msgrcv): New function.  Move part of msgrcv parser code
here, add check umove() return code.
(sys_msgsnd): Print msqid parameter as int instead of long.
(sys_msgrcv): Likewise.  Use tprint_msgrcv().
* process.c (print_affinitylist): Check umove() return code.
* sock.c (sock_ioctl): Handle unlikely umove() failure in the
SIOCGIFCONF parser.
2009-11-06 17:27:46 +00:00
f0df31e71a Fix check for linux/netlink.h on Linux 2.6.32-rc5+
* configure.ac (AC_CHECK_HEADERS): In check for linux/netlink.h, include
sys/socket.h instead of linux/socket.h beforehand.
2009-11-06 16:57:15 +00:00
Andreas Schwab
fe9495369e Decode fallocate on PowerPC
* linux/powerpc/syscallent.h: Decode fallocate.
2009-11-04 17:15:46 +01:00
Andreas Schwab
b5600fc3df Factor out printing of 64bit syscall argument
* defs.h (ALIGN64): Remove.
(printllval): Declare.
* util.c (printllval): Define.
* file.c (sys_readahead): Use printllval.
(sys_lseek64): Likewise.
(sys_truncate64): Likewise.
(sys_ftruncate64): Likewise.
(sys_fadvise64): Likewise.
(sys_fadvise64_64): Likewise.
(sys_fallocate): Likewise.
* io.c (sys_pread): Likewise.
(sys_pwrite): Likewise.
(sys_pread64): Likewise.
(sys_pwrite64): Likewise.
* mem.c (sys_mmap64): Likewise.
2009-11-04 17:10:25 +01:00
Andreas Schwab
d45f0a66c1 Correct decoding of readahead and fadvice64(_64) on PowerPC
* file.c (sys_readahead): Align 64bit argument.  Handle PowerPC64
like other 64bit architectures.
(sys_fadvise64): Likewise.
(sys_fadvise64_64): Handle PowerPC like ARM.
* linux/powerpc/syscallent.h (sys_readahead): Account for 64bit
argument alignment on PowerPC32.
2009-11-03 16:14:29 +01:00
Andreas Schwab
ccdff481c0 Maintain separate print column for each process
* defs.h (struct tcp): Add curcol.
* strace.c: (alloc_tcb): Initialize it.
(trace): Use curcol from current process and save it before
continuing.
(tprintf): Don't modify curcol on output error.
2009-10-27 16:30:41 +01:00
Roland McGrath
7d9247e197 * strace.spec: 4.5.19-1 release. 2009-10-21 10:36:13 -07:00
ff896f7e0f * file.c (printstat64): Cleanup trailing whitespace. 2009-10-21 13:44:04 +00:00
Andreas Schwab
61b7435ca1 Fix decoding of newfstatat syscall on x86-64
* file.c (printstat64) [LINUX && X68_64]: If tracing a 64-bit
process redirect to printstat.
Fixes RH#529316 "Field values shown for "newfstatat" system
call are incorrect"
2009-10-16 11:37:13 +02:00
8af45cf0ea * configure.ac (AC_CHECK_HEADERS): Remove asm/reg.h. 2009-10-12 19:54:43 +00:00
Mike Frysinger
8566c50025 sparc/linux: Rewrite to use asm/ptrace.h
The current sparc/linux code uses asm/reg.h, but recent Linux kernels
dropped that header completely.  So switch over to the ptrace headers
as those should stick around indefinitely as part of the ABI.

* defs.h [LINUXSPARC] (U_REG_G1, U_REG_O0, U_REG_O1): Define.
* process.c: Drop asm/regs.h include.
[SPARC || SPARC64] (change_syscall): Change struct regs to struct pt_regs.
* signal.c: Drop asm/regs.h include.
(m_siginfo_t): Unify [SPARC || SPARC64] and [MIPS].
[SPARC || SPARC64] (sys_sigreturn): Change struct regs to struct pt_regs.
* syscall.c: Drop asm/regs.h include.
[SPARC || SPARC64] (internal_syscall, get_scno, get_error, force_result,
syscall_enter): Change struct regs to struct pt_regs.
* util.c: Drop asm/regs.h include.
(_hack_syscall5, _ptrace): Delete.
[SPARC || SPARC64] (getpc, printcall, arg_setup_state): Change
struct regs to struct pt_regs.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-12 19:54:21 +00:00
Roland McGrath
150759b7bf * make-dist: Clean up. 2009-10-11 16:30:57 -07:00
Roland McGrath
ffda2d393f * configure.ac: Use AC_CONFIG_AUX_DIR([.]). 2009-10-11 16:26:20 -07:00
ac26068861 * make-dist: New script for preparing release tarballs. 2009-10-09 23:15:28 +00:00
81dfcfb18b * git-set-file-times: Import from rsync. 2009-10-09 23:07:28 +00:00
76ac37d8d5 * Makefile.am [MAINTAINER_MODE]: Define and export TAR_OPTIONS. 2009-10-09 22:10:09 +00:00
783f5bc24c Enhance msgsnd() parser
* ipc.c (tprint_msgsnd): New function.  Move msgsnd parser code here,
add check for umove() return code.
(sys_msgsnd): Use tprint_msgsnd().
2009-10-08 23:33:15 +00:00
d7bb8b49cc * NEWS: Update for 4.5.19 release. 2009-10-08 22:29:20 +00:00
ef941013d2 Enhance semop()/semtimedop() sembuf parser
* ipc.c (tprint_sembuf): New function. Move sembuf parser code here,
add abbrev() support.
(sys_semop, sys_semtimedop): Use tprint_sembuf().
2009-10-08 15:13:06 +00:00
Jakub Bogusz
002e985526 Add pretty printing of sembuf argument to semop() and semtimedop()
* ipc.c (semop_flags): New xlat structure.
(sys_semop, sys_semtimedop): Add pretty printing of sembuf argument.
2009-10-08 15:13:06 +00:00
Mike Frysinger
c1a5b7e8c4 Add support for Linux/no-mmu with vfork
* configure.ac (AC_CHECK_FUNCS): Add fork.
* strace.c (strace_vforked): Define.
(startup_child): Do not raise SIGSTOP if vforked.
(trace): Skip first exec when starting up after vforked.
* syscall.c [BFIN] (get_scno): Drop waitexec checks.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-08 14:25:01 +00:00
Mike Frysinger
229738ce4e Avoid malloc(0) in getdents parsers
On end of directory, getdents returns 0.  This return value is used to
then try and do malloc(0), but on some systems this will always return
NULL.  Since the code won't read the pointer in question if len is 0,
then don't bother calling malloc(0) and set the pointer to NULL ourself.
* file.c (sys_getdents, sys_getdents64): Avoid malloc(0) call.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-08 14:08:57 +00:00
Mike Frysinger
8bfc23e056 Add sys_nanosleep() prototype for sparc
* linux/sparc/syscall.h (sys_nanosleep): New prototype.
Reported by Frederik Schüler.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-07 20:59:48 +00:00
Mike Frysinger
09a13c2da7 Silence compiler warnings about implicit cast from pointer to integer
* util.c (do_ptrace): Cast ptrace() 4th arg to long.
(ptrace_restart): Drop void* cast on ptrace() 4th arg.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-07 19:06:22 +00:00
Mike Frysinger
aab05bd713 Ignore .gdb files from FLAT toolchains
* .gitignore: Add /*.gdb.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-07 19:06:22 +00:00
Mike Frysinger
24ab9600b6 * configure.ac (AC_CHECK_FUNCS): Sort and expand.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-07 19:06:22 +00:00
Mike Frysinger
e90cc74275 Blackfin: Update ioctl/syscall lists
* linux/bfin/ioctlent.h: Sync list with latest kernel sources.
* linux/bfin/syscallent.h: Likewise.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-07 19:06:22 +00:00
Mike Frysinger
b065daa71b ioctlsort: Check ppc hosts too
* linux/ioctlsort.c: Check for __powerpc__.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-10-07 19:06:22 +00:00
Andreas Schwab
0fda1c59cc Fix build on ia64
* linux/ia64/syscallent.h: Update for addition of accept4 syscall
in ../syscallent.h.
2009-10-07 16:37:40 +02:00
Roland McGrath
d087571b3e * strace.spec (%doc): Add ChangeLog-CVS. 2009-10-06 18:03:25 -07:00
Roland McGrath
2b832dfa69 * Makefile.am (srpm): New phony target. 2009-10-06 17:50:21 -07:00
Roland McGrath
a478d741dc * Makefile.am (EXTRA_DIST): Add ChangeLog.
($(srcdir)/ChangeLog): New target, replaces gen-changelog phony target.
Put it inside [MAINTAINER_MODE].
2009-10-06 17:50:04 -07:00
84c693e99a * NEWS: Update for 4.5.19 release. 2009-10-06 10:40:17 +00:00
Frederik Schüler
f786da5b1b Prepare debian/* files for release
* debian/rules: Do not ship ChangeLog anymore.
* debian/control: Update to Debian standards version 3.8.1, and remove
Roland from the Maintainers list.  This closes Debian bug #521458.
* debian/changelog: Document changes and prepare for release.
2009-10-05 20:50:07 +00:00
67874d8393 * defs.h [HPPA]: Lower MAX_ARGS from 32 to 6. 2009-10-05 23:32:39 +00:00
c0124e6448 * ipc.c [LINUX] (sys_shmat): HPPA does not use an IPC multiplexer.
Based on patch from Carlos O'Donell.
2009-10-05 23:31:54 +00:00
Carlos O'Donell
1dc2061c2a * linux/hppa/syscallent.h: Update syscalls.
Based on work by Kyle McMartin and Helge Deller.
2009-10-05 22:51:12 +00:00
Carlos O'Donell
4677c8af94 Fix SA_HANDLER function pointer comparisons for hppa
* signal.c (sys_sigaction): Cast SA_HANDLER function pointers to long.
(sys_rt_sigaction): Likewise.
2009-10-05 22:50:39 +00:00
Edgar E. Iglesias
eeb9ce3895 CRIS: Correct first argument to upeek()
This complements commit ea0e6e8026.
* syscall.c [CRISV10 || CRISV32] (syscall_fixup, syscall_enter): Pass
tcp pointer instead of pid to upeek().
* util.c [CRISV10 || CRISV32] (printcall): Likewise.

Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
2009-10-05 14:57:06 +00:00
9d2ee3d6aa * signal.c (do_signalfd): Fix typo in output format. 2009-10-05 14:31:28 +00:00
7304fd9abd * Makefile.am (gen_changelog_start_date): Fix date. 2009-09-21 18:42:33 +00:00
fbfed22854 Prepare for 4.5.19 release
* NEWS: Update for 4.5.19 release.
* configure.ac: Version 4.5.19.
* debian/changelog: 4.5.19-1.
* strace.spec: 4.5.19-1.
2009-09-19 00:52:24 +00:00
22a97807b0 Update debian/* to 4.5.18-1
* debian/changelog: Update to 4.5.18-1.
* debian/compat: Set compatibility level to 7.
* debian/control (Build-Depends): Update debhelper requirement.
(strace, strace64): Add Section and Priority tags.
2009-09-19 00:52:14 +00:00