mirror of https://github.com/xemu-project/xemu.git
linux-user: Print tid not pid with strace
This aligns with strace, and is very useful when tracing multi-threaded programs. The result is the same in single-threaded programs. Signed-off-by: J. Neuschäfer <j.neuschaefer@gmx.net> Message-Id: 20241024-strace-v1-1-56c4161431cd@gmx.net [rth: Use TaskState.ts_tid via get_task_state()] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
34754a3a62
commit
e8b609ac35
|
@ -4401,7 +4401,7 @@ print_syscall(CPUArchState *cpu_env, int num,
|
|||
if (!f) {
|
||||
return;
|
||||
}
|
||||
fprintf(f, "%d ", getpid());
|
||||
fprintf(f, "%d ", get_task_state(env_cpu(cpu_env))->ts_tid);
|
||||
|
||||
for (i = 0; i < nsyscalls; i++) {
|
||||
if (scnames[i].nr == num) {
|
||||
|
|
Loading…
Reference in New Issue