2003-01-08  Roland McGrath  <roland@redhat.com>
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.

max630/strace,bigzz/strace_android,AOSP-YU/platform_external_strace,DirtyUnicorns/android_external_strace,hjl-tools/strace,DirtyUnicorns/android_external_strace,dmullis/strace-ext,cuviper/strace,Distrotech/strace,hjl-tools/strace,geofft/strace,bnoordhuis/strace,Distrotech/strace,xin3liang/platform_external_strace,lizh06/strace-plus,Saruta/strace,timmattison/strace-arm,MonkeyZZZZ/platform_external_strace,lkundrak/strace,android-ia/platform_external_strace,Infinitive-OS/platform_external_strace,cuviper/strace,CyanogenMod/android_external_strace,Andrey9kin/revisor,MonkeyZZZZ/platform_external_strace,DirtyUnicorns/android_external_strace,dmullis/strace-ext,max630/strace,android-ia/platform_external_strace,dmullis/strace-ext,kapdop/android_external_strace,bigzz/strace_android,Infinitive-OS/platform_external_strace,jamel/strace-plus,AOSP-YU/platform_external_strace,Andrey9kin/revisor,geekboxzone/lollipop_external_strace,CyanogenMod/android_external_strace,TeamExodus/external_strace,cuviper/strace,geekboxzone/mmallow_external_strace,kapdop/android_external_strace,YUPlayGodDev/platform_external_strace,Distrotech/strace,lizh06/strace-plus,timmattison/strace-arm,cuviper/strace,timmattison/strace-arm,Distrotech/strace,pombredanne/strace,lizh06/strace-plus,TeamExodus/external_strace,pombredanne/strace,bnoordhuis/strace,jamel/strace-plus,geekboxzone/lollipop_external_strace,TeamExodus/external_strace,dmullis/strace-ext,geekboxzone/lollipop_external_strace,YUPlayGodDev/platform_external_strace,geofft/strace,CyanogenMod/android_external_strace,pgbovine/strace-plus,android-ia/platform_external_strace,pgbovine/strace-plus,Saruta/strace,DirtyUnicorns/android_external_strace,pgbovine/strace-plus,jamel/strace-plus,TeamExodus/external_strace,geekboxzone/mmallow_external_strace,Infinitive-OS/platform_external_strace,geofft/strace,gcode-mirror/strace-plus,bnoordhuis/strace,geofft/strace,Yu-AndroidM/android_external_strace,lizh06/strace-plus,geofft/strace,Yu-AndroidM/android_external_strace,YUPlayGodDev/platform_external_strace,gcode-mirror/strace-plus,xin3liang/platform_external_strace,gcode-mirror/strace-plus,YUPlayGodDev/platform_external_strace,Andrey9kin/revisor,geekboxzone/mmallow_external_strace,Saruta/strace,gcode-mirror/strace-plus,TeamExodus/external_strace,AOSP-YU/platform_external_strace,pgbovine/strace-plus,kapdop/android_external_strace,lkundrak/strace,Saruta/strace,MonkeyZZZZ/platform_external_strace,lkundrak/strace,android-ia/platform_external_strace,dmullis/strace-ext,Yu-AndroidM/android_external_strace,CyanogenMod/android_external_strace,AOSP-YU/platform_external_strace,geekboxzone/lollipop_external_strace,MonkeyZZZZ/platform_external_strace,hjl-tools/strace,gcode-mirror/strace-plus,jamel/strace-plus,Saruta/strace,YUPlayGodDev/platform_external_strace,MonkeyZZZZ/platform_external_strace,pombredanne/strace,kapdop/android_external_strace,bnoordhuis/strace,geekboxzone/lollipop_external_strace,vrastogi/strace,lizh06/strace-plus,Yu-AndroidM/android_external_strace,bigzz/strace_android,lkundrak/strace,CyanogenMod/android_external_strace,geekboxzone/mmallow_external_strace,DirtyUnicorns/android_external_strace,kapdop/android_external_strace,bigzz/strace_android,vrastogi/strace,cuviper/strace,jamel/strace-plus,Distrotech/strace,Infinitive-OS/platform_external_strace,Yu-AndroidM/android_external_strace,pgbovine/strace-plus,android-ia/platform_external_strace,Infinitive-OS/platform_external_strace,pombredanne/strace,vrastogi/strace,max630/strace,geekboxzone/mmallow_external_strace,vrastogi/strace,Andrey9kin/revisor,xin3liang/platform_external_strace,vrastogi/strace,AOSP-YU/platform_external_strace,xin3liang/platform_external_strace,bigzz/strace_android