commit | 4b4ec120875a8884f7d1b4a86c1639df1bb9cdbe | [log] [tgz] |
---|---|---|
author | Dmitry V. Levin <ldv@altlinux.org> | Sat Feb 07 17:31:54 2015 +0000 |
committer | Dmitry V. Levin <ldv@altlinux.org> | Sat Feb 07 17:31:54 2015 +0000 |
tree | e1bb5062da997401101b5d3666b3d0cd9ee27fe0 | |
parent | d8890b5c9d77d818617635741ab6f85d33aa9435 [diff] |
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.