With syscall kernel tracing enabled, the syscall return value (%eax,

%edx) was trashed before passing it to the user debugger. strace shows
the correct return values again.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24364 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-03-11 21:29:44 +00:00
parent 7cee6a817b
commit 74d93b3526

View File

@ -400,7 +400,9 @@ handle_syscall:
jz 1f
pushl -4(%ebp) // syscall start time
pushl -8(%ebp)
push %edx // syscall return value
movl IFRAME_edx(%ebp), %edx // syscall return value
movl IFRAME_eax(%ebp), %eax
push %edx
push %eax
lea 16(%esp), %eax // syscall parameters
push %eax