strace on irix 6.5
Dmitry V. Levin
ldv at altlinux.org
Mon Nov 10 17:26:55 UTC 2008
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: not available
More information about the Strace-devel