Re: [PATCH] linux-user: Trace wait4()'s and waitpid()'s wstatus

2024-10-05 Thread Richard Henderson
On 10/5/24 10:57, Richard Henderson wrote: On 10/1/24 12:32, Ilya Leoshkevich wrote: Borrow the code for formatting the most frequent WIFEXITED() and WIFSIGNALED() special cases from from the strace's printstatus(). Output examples: 474729 wait4(-1,0x7f00767ff0a0,0,(nil)) = 474733 (wstatu

Re: [PATCH] linux-user: Trace wait4()'s and waitpid()'s wstatus

2024-10-05 Thread Richard Henderson
On 10/1/24 12:32, Ilya Leoshkevich wrote: Borrow the code for formatting the most frequent WIFEXITED() and WIFSIGNALED() special cases from from the strace's printstatus(). Output examples: 474729 wait4(-1,0x7f00767ff0a0,0,(nil)) = 474733 (wstatus={WIFEXITED(s) && WEXITSTATUS(s) == 1})