trace: split into several functions
trace: split into several functions

This change moves the main loop back to main() and splits trace()
into several functions.  There are no algorithmic changes.

* strace.c (print_debug_info, maybe_allocate_tcb, maybe_switch_tcbs,
print_signalled, print_exited, print_stopped, startup_tcb): New
functions.
(trace) Use them.  Move the main loop ...
(main): ... here.

AOSP-YU/platform_external_strace,geofft/strace,geofft/strace,geofft/strace,Yu-AndroidM/android_external_strace,Yu-AndroidM/android_external_strace,geofft/strace,cuviper/strace,YUPlayGodDev/platform_external_strace,YUPlayGodDev/platform_external_strace,MonkeyZZZZ/platform_external_strace,Infinitive-OS/platform_external_strace,cuviper/strace,Yu-AndroidM/android_external_strace,cuviper/strace,MonkeyZZZZ/platform_external_strace,TeamExodus/external_strace,bigzz/strace_android,AOSP-YU/platform_external_strace,bigzz/strace_android,geekboxzone/mmallow_external_strace,bigzz/strace_android,kapdop/android_external_strace,cuviper/strace,geekboxzone/mmallow_external_strace,Distrotech/strace,Distrotech/strace,geekboxzone/mmallow_external_strace,TeamExodus/external_strace,AOSP-YU/platform_external_strace,Infinitive-OS/platform_external_strace,kapdop/android_external_strace,kapdop/android_external_strace,TeamExodus/external_strace,Saruta/strace,Saruta/strace,TeamExodus/external_strace,Yu-AndroidM/android_external_strace,Saruta/strace,cuviper/strace,MonkeyZZZZ/platform_external_strace,geofft/strace,vrastogi/strace,MonkeyZZZZ/platform_external_strace,kapdop/android_external_strace,TeamExodus/external_strace,Distrotech/strace,Yu-AndroidM/android_external_strace,bigzz/strace_android,YUPlayGodDev/platform_external_strace,bigzz/strace_android,vrastogi/strace,vrastogi/strace,AOSP-YU/platform_external_strace,Infinitive-OS/platform_external_strace,Infinitive-OS/platform_external_strace,YUPlayGodDev/platform_external_strace,Saruta/strace,AOSP-YU/platform_external_strace,Infinitive-OS/platform_external_strace,Saruta/strace,kapdop/android_external_strace,geekboxzone/mmallow_external_strace,YUPlayGodDev/platform_external_strace,vrastogi/strace,geekboxzone/mmallow_external_strace,MonkeyZZZZ/platform_external_strace,Distrotech/strace,vrastogi/strace,Distrotech/strace