"Dmitry V. Levin" <[EMAIL PROTECTED]> wrote:
> 
> I'm not sure that such a place exists.
> The decode_open() function was made from sys_open() just to reuse the code
> common for sys_open and sys_openat.

I'm quite certain that fixing all the decode_... functions 
is not the right way to get strace to work properly again.
It's probably way too late in the process. I'd think that
either struct tcb, some of its members or the function
that fills it needs to be modified to shift all parameters
by one and get rid of the unneccesary 0 in the parameter
list. To illustrate the problem, here's a small sample
of strace output (with open fixed and read() partially
fixed):

open("/usr/lib/locale/en_US/LC_NUMERIC", O_RDONLY) = 3
read(3, NULL, 2592)                     = 2
close(0)                                = 0
BSD_getime(0)                           = 0
ioctl(0, 0x1, 0)                        = 0
syssgi(SGI_SYSCONF, 0, 0x19, 0, 0x8)    = 0
ioctl(0, 0x1, 0)                        = 0
brk(0)                                  = 0
lxstat(0, 0x2, NULL)                    = 0


thanks,

rainer

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to