Hi,
On Sun, Oct 26, 2008 at 04:36:15PM +0100, Rainer M. Canavan wrote:
> I'm trying to get a current release of strace to compile and run
> on IRIX 6.5. Aside from a number of new and obsolete syscalls that
> need to be ifdefed in system.c, there appears to be a problem with
> the decoding of syscall parameters. Strace claims that almost all
> syscalls have 0 as the first parameter and then fails to properly
> decode the following parameters. I've hacked "open" to display
> the peoper filename and flags, but I'm certain that this is not
> the proper way of fixing it, but I've failed to find a central place
> to accomplish the same effect for all other syscalls.
>
> If I recall correctly, the following change to file.c fixed
> the open call:
>
> sys_open(struct tcb *tcp)
> {
> - return decode_open(tcp, 0);
> + return decode_open(tcp, 1);
> }
>
> Is there any one place where such offsets can be adjusted? 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. -- ldv
pgpMsQLG348qB.pgp
Description: PGP signature
------------------------------------------------------------------------- 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
