Commit Graph

371 Commits

Author SHA1 Message Date
Roland McGrath
6500d0af43 2003-01-13 Roland McGrath <roland@redhat.com>
* linux/powerpc/syscallent.h: Add missing system calls.
	Decode more system calls, we were just printargs for many things.
	Remove some x86-specific system calls.
	Remove two syscalls between the socket and ipc syscalls,
	it was resulting in all IPC syscalls being off by two.
2003-01-14 07:53:37 +00:00
Roland McGrath
a4168e578c 2003-01-13 Roland McGrath <roland@redhat.com>
* linux/ioctlent.sh: Look in sound/ directory too.
	From Anton Blanchard <anton@samba.org>.
2003-01-14 07:53:36 +00:00
Roland McGrath
7388a26af8 2003-01-13 Roland McGrath <roland@redhat.com>
* linux/syscall.h [ARM] (SYS_socket_subcall): Set to 300.
2003-01-14 07:53:35 +00:00
Roland McGrath
bb3af52962 2003-01-13 Roland McGrath <roland@redhat.com>
* ioctl.c (ioctl_decode) [POWERPC]: Decode term ioctls like Alpha.
	From Anton Blanchard <anton@samba.org>.
2003-01-14 07:53:34 +00:00
Roland McGrath
8f474e087e 2003-01-13 Roland McGrath <roland@redhat.com>
* strace.c [! HAVE_STRSIGNAL]: Clean up #ifdefs on decls for
	sys_siglist and _sys_siglist.
	Reported by John Hughes <john@Calva.COM>.
2003-01-14 07:53:33 +00:00
Roland McGrath
81634e482e 2003-01-13 Roland McGrath <roland@redhat.com>
* desc.c (printflock64): Fix ADDR argument type.
	From Anton Blanchard <anton@samba.org>.
2003-01-14 07:53:31 +00:00
Roland McGrath
6ef18edb5f 2003-01-13 Roland McGrath <roland@redhat.com>
* linux/powerpc/signalent.h: Add SIGRTMIN.
	From Anton Blanchard <anton@samba.org>.
2003-01-14 07:53:30 +00:00
Roland McGrath
edcf1b0d12 . 2003-01-10 21:43:33 +00:00
Roland McGrath
1d847cf1d5 2003-01-10 Roland McGrath <roland@redhat.com>
* configure.ac, NEWS: Version 4.4.91.
	* strace.spec, debian/changelog: 4.4.91-1
2003-01-10 21:43:24 +00:00
Roland McGrath
09b371c979 . 2003-01-10 20:51:13 +00:00
Roland McGrath
7f33cc3eb5 2003-01-10 Roland McGrath <roland@redhat.com>
* util.c [LINUX && X86_64] (arg0_offset, arg1_offset): Use correct
	values for x86-64, conditional on current_personality.
2003-01-10 20:51:00 +00:00
Roland McGrath
944d10f887 . 2003-01-10 20:14:52 +00:00
Roland McGrath
e29341c02f 2003-01-10 Roland McGrath <roland@redhat.com>
* strace.c (droptcb): Clear flags word before calling rebuild_pollv.
2003-01-10 20:14:20 +00:00
Roland McGrath
7686eee1d7 Fix output format of last change. 2003-01-10 20:09:43 +00:00
Roland McGrath
03c5c4d37e . 2003-01-10 20:06:01 +00:00
Roland McGrath
c012d223a6 2003-01-10 Roland McGrath <roland@redhat.com>
* strace.c (rebuild_pollv): Fix typo: struct poll -> struct pollfd.
2003-01-10 20:05:56 +00:00
Roland McGrath
38dc6bb84f 2003-01-10 Roland McGrath <roland@redhat.com>
* configure.ac: Check struct T_conn_res for QUEUE_ptr or ACCEPTOR_id.
	* stream.c (print_transport_message): Use #ifdefs for those members.
2003-01-10 20:05:54 +00:00
Roland McGrath
acf06ef2e3 typo in last change 2003-01-10 19:57:34 +00:00
Roland McGrath
516f34994b . 2003-01-10 19:55:42 +00:00
Roland McGrath
a7a0d38a4c 2003-01-10 Roland McGrath <roland@redhat.com>
* configure.ac: Fix siginfo_t/sig_atomic_t checks.
	Use prerequisite #include <netinet/in.h> for netinet/*.h checks.
2003-01-10 19:55:30 +00:00
Roland McGrath
ca16be8be9 2003-01-10 Roland McGrath <roland@redhat.com>
* strace.c (pfd2tcb): Fix for new tcbtab type.
	(rebuild_pollv): Likewise.
	(detach): Put variables used under [LINUX] inside #ifdef.
2003-01-10 19:55:28 +00:00
Roland McGrath
43b286f8cb 2003-01-10 Roland McGrath <roland@redhat.com>
* process.c (change_syscall) [POWERPC]: Add missing return.
	* util.c [POWERPC] (arg0_offset): Set to 4*PT_R3, not 4*PT_ORIG_R3.
2003-01-10 11:14:41 +00:00
Roland McGrath
dcfcaf71b3 . 2003-01-10 10:45:13 +00:00
Roland McGrath
45aeb6e26d 2003-01-10 Roland McGrath <roland@redhat.com>
* configure.ac: Diddle CFLAGS after AC_PROG_CC, not before.
2003-01-10 10:44:59 +00:00
Roland McGrath
037124f9d2 2003-01-10 Roland McGrath <roland@redhat.com>
* strace.spec: New file.
	* debian/changelog: 4.4.90-1
	* debian/rules (binary-arch): Depend on build.
	(clean): Don't try to run Makefile.in.
	* debian/control (Standards-Version): Now 3.5.8.
2003-01-10 10:44:57 +00:00
Roland McGrath
ea49621395 . 2003-01-10 07:50:29 +00:00
Roland McGrath
a03d2275f2 2003-01-09 Roland McGrath <roland@redhat.com>
* debian/control: Update Maintainer: field.
2003-01-10 07:50:23 +00:00
Roland McGrath
d38809b8bd 2003-01-09 Roland McGrath <roland@redhat.com>
* syscall.c (force_result) [S390 || S390X]: Fix typo.
2003-01-10 07:50:21 +00:00
Roland McGrath
5694e80e14 update 2003-01-09 06:56:39 +00:00
Roland McGrath
d81f1d9aac 2003-01-08 Roland McGrath <roland@redhat.com>
Revamp -f support for Linux.
	* util.c [LINUX] (setbpt, clearbpt): New implementations that tweak
	the system call to be clone with CLONE_PTRACE set.  Various new static
	helper functions.
	* process.c (internal_clone): Define also #ifdef SYS_clone2.
	Initialize TCPCHILD->parent field.
	[CLONE_PTRACE]: Don't do PTRACE_ATTACH here, because it's preattached.
	Check in case the new child is in the tcb already.
	(internal_fork) [LINUX]: Just call internal_clone.
	* strace.c (trace) [LINUX]: Under -f/-F, grok an unknown pid
	reporting to wait, put it in the TCB with TCB_ATTACHED|TCB_SUSPENDED.
2003-01-09 06:53:34 +00:00
Roland McGrath
e85bbfe9ab 2003-01-08 Roland McGrath <roland@redhat.com>
Support for new Linux 2.5 thread features.
	* defs.h [LINUX]: Define __NR_exit_group if not defined.
	(struct tcb): New members nclone_threads, nclone_detached,
	and nclone_waiting.
	(TCB_CLONE_DETACHED, TCB_CLONE_THREAD, TCB_GROUP_EXITING): New macros.
	(waiting_parent): Macro removed.
	(pid2tcb): Declare it.
	* process.c (internal_clone) [TCB_CLONE_THREAD]: Reparent the new
	child to our parent if we are a CLONE_THREAD child ourselves.
	Maintain TCB_CLONE_THREAD and TCB_CLONE_DETACHED flags and counts.
	(internal_wait) [TCB_CLONE_THREAD]: Factor out detached children when
	determining if we have any.  If TCB_CLONE_THREAD is set, check
	parent's children instead of our own, and bump nclone_waiting count.
	(internal_exit) [__NR_exit_group]: Set the TCB_GROUP_EXITING flag if
	the syscall was exit_group.
	* syscall.c (internal_syscall): Use internal_exit for exit_group.
	* strace.c (pid2tcb): No longer static.
	(alloctcb) [TCB_CLONE_THREAD]: Initialize new fields.
	(droptcb) [TCB_CLONE_THREAD]: Maintain new fields.
	If we have thread children, set TCB_EXITING and don't clear the TCB.
	(resume) [TCB_CLONE_THREAD]: Decrement parent's nclone_waiting.
	(detach) [TCB_CLONE_THREAD]: When calling resume, check all thread
	children of our parent that might be waiting for us too.
	[TCB_GROUP_EXITING] (handle_group_exit): New function.
	(trace) [TCB_GROUP_EXITING]: Use that in place of detach or droptcb.
	Revamp -f support for Linux.
	* util.c [LINUX] (setbpt, clearbpt): New implementations that tweak
	the system call to be clone with CLONE_PTRACE set.  Various new static
	helper functions.
	* process.c (internal_clone): Define also #ifdef SYS_clone2.
	Initialize TCPCHILD->parent field.
	[CLONE_PTRACE]: Don't do PTRACE_ATTACH here, because it's preattached.
	Check in case the new child is in the tcb already.
	(internal_fork) [LINUX]: Just call internal_clone.
	* strace.c (trace) [LINUX]: Under -f/-F, grok an unknown pid
	reporting to wait, put it in the TCB with TCB_ATTACHED|TCB_SUSPENDED.
2003-01-09 06:53:31 +00:00
Roland McGrath
923f750119 2003-01-08 Roland McGrath <roland@redhat.com>
Support for new Linux 2.5 thread features.
	* defs.h [LINUX]: Define __NR_exit_group if not defined.
	(struct tcb): New members nclone_threads, nclone_detached,
	and nclone_waiting.
	(TCB_CLONE_DETACHED, TCB_CLONE_THREAD, TCB_GROUP_EXITING): New macros.
	(waiting_parent): Macro removed.
	(pid2tcb): Declare it.
	* process.c (internal_clone) [TCB_CLONE_THREAD]: Reparent the new
	child to our parent if we are a CLONE_THREAD child ourselves.
	Maintain TCB_CLONE_THREAD and TCB_CLONE_DETACHED flags and counts.
	(internal_wait) [TCB_CLONE_THREAD]: Factor out detached children when
	determining if we have any.  If TCB_CLONE_THREAD is set, check
	parent's children instead of our own, and bump nclone_waiting count.
	(internal_exit) [__NR_exit_group]: Set the TCB_GROUP_EXITING flag if
	the syscall was exit_group.
	* syscall.c (internal_syscall): Use internal_exit for exit_group.
	* strace.c (pid2tcb): No longer static.
	(alloctcb) [TCB_CLONE_THREAD]: Initialize new fields.
	(droptcb) [TCB_CLONE_THREAD]: Maintain new fields.
	If we have thread children, set TCB_EXITING and don't clear the TCB.
	(resume) [TCB_CLONE_THREAD]: Decrement parent's nclone_waiting.
	(detach) [TCB_CLONE_THREAD]: When calling resume, check all thread
	children of our parent that might be waiting for us too.
	[TCB_GROUP_EXITING] (handle_group_exit): New function.
	(trace) [TCB_GROUP_EXITING]: Use that in place of detach or droptcb.
2003-01-09 06:53:27 +00:00
Roland McGrath
44f24c7b26 2003-01-08 Roland McGrath <roland@redhat.com>
* Makefile.am (AM_CFLAGS): New variable, define to $(WARNFLAGS).
	* Makefile.am (EXTRA_DIST): Remove debian/postinst and debian/prerm.
2003-01-09 06:53:25 +00:00
Roland McGrath
709ef619bf 2003-01-08 Roland McGrath <roland@redhat.com>
* linux/x86_64/syscallent1.h (sys_oldlstat): #define as printargs.
2003-01-09 06:53:24 +00:00
Roland McGrath
ca16a404e2 2003-01-08 Roland McGrath <roland@redhat.com>
* file.c [LINUX]: #undef st_[amc]time in case they are macros.
2003-01-09 06:53:22 +00:00
Wichert Akkerman
136bbb1aee Do not end summary with full stop 2003-01-08 23:46:03 +00:00
Wichert Akkerman
5a9b086cfe No longer install postinst and prerm since /usr/doc symlink is no longer needed 2003-01-08 23:44:36 +00:00
Roland McGrath
2850c7edcf . 2002-12-30 10:46:02 +00:00
Roland McGrath
d97b2071cd 2002-12-30 Roland McGrath <roland@redhat.com>
* Makefile.am (bin_SCRIPTS): New variable, list strace-graph.
	(EXTRA_DIST): Add missing files.
2002-12-30 10:45:58 +00:00
Roland McGrath
41074c0b39 2002-12-30 Roland McGrath <roland@redhat.com>
* configure.ac: Fix asm/sigcontext.h check to include prerequisite.
2002-12-30 10:23:01 +00:00
Roland McGrath
9797cebddb 2002-12-30 Roland McGrath <roland@redhat.com>
* syscall.c (qualify_one): New function.
	(qual_options): Replace lookup field with qualify, update initializer.
	(qualify): Update caller.
	(qual_signal, qual_fault, qual_desc): Rewritten from lookup_*.
	(qual_syscall): Rewritten lookup_syscall, match name more than once.
	Fixes RH#70579, bites IA64 -efoo when foo exists on IA32.
2002-12-30 10:23:00 +00:00
Roland McGrath
692b68a316 . 2002-12-30 09:33:32 +00:00
Roland McGrath
fd3e042300 2002-12-30 Roland McGrath <roland@redhat.com>
* version.c (version): Make const, bump to 4.4.90.
	* strace.c: Update decl.
2002-12-30 09:33:22 +00:00
Roland McGrath
7daaace264 2002-12-30 Roland McGrath <roland@redhat.com>
* Makefile.am [LINUX && X86_64]: Remove cruft.
	* linux/x86_64/errnoent1.h: New file.
	* linux/x86_64/ioctlent1.h: New file.
	* linux/x86_64/signalent1.h: New file.
	* linux/x86_64/syscallent1.h: New file.
	* linux/x86_64/i386-headers.diff: File removed.
	* linux/x86_64/makeheaders.sh: File removed.
	* linux/x86_64/Makefile.in: File removed.
2002-12-30 09:33:20 +00:00
Roland McGrath
a83c22f1c6 . 2002-12-30 09:13:30 +00:00
Roland McGrath
2746edd185 2002-12-29 Roland McGrath <roland@redhat.com>
* configure.ac, Makefile.am: Punt subdirs, handle everything here.
	* linux/Makefile.am: File removed.
	* freebsd/Makefile.am: File removed.
	* sunos4/Makefile.in: File removed.
	* svr4/Makefile.in: File removed.
2002-12-30 09:13:08 +00:00
Roland McGrath
7e7f7703e5 2002-12-30 Roland McGrath <roland@redhat.com>
* linux/syscallent.h [X86_64]: Disable sanity checks, subcall stuff is
	already broken for 32-bit personality on x86-64.
2002-12-30 09:13:07 +00:00
Roland McGrath
80964aaf26 2002-12-29 Roland McGrath <roland@redhat.com>
* configure.ac, Makefile.am: Punt subdirs, handle everything here.
2002-12-30 01:11:08 +00:00
Roland McGrath
61bf7c201f 2002-12-29 Roland McGrath <roland@redhat.com>
* sunos4/Makefile.in: File removed.
	* svr4/Makefile.in: File removed.
2002-12-30 01:09:27 +00:00
Roland McGrath
64f793ad3f Removed in automake update 2002-12-30 00:53:11 +00:00