Fix decoding of newfstatat syscall on x86-64

* file.c (printstat64) [LINUX && X68_64]: If tracing a 64-bit
process redirect to printstat.
Fixes RH#529316 "Field values shown for "newfstatat" system
call are incorrect"
This commit is contained in:
Andreas Schwab 2009-10-16 11:37:13 +02:00
parent 8af45cf0ea
commit 61b7435ca1

7
file.c
View File

@ -1079,6 +1079,13 @@ printstat64(struct tcb *tcp, long addr)
# endif
#endif /* LINUXSPARC */
#if defined LINUX && defined X86_64
if (current_personality == 0) {
printstat(tcp, addr);
return;
}
#endif
if (umove(tcp, addr, &statbuf) < 0) {
tprintf("{...}");
return;