Re: Portable syscall inspection

2007-05-31 Thread Trent Waddington
On 5/29/07, Ralf Baechle <[EMAIL PROTECTED]> wrote: Also consider that some architectures pass parts of the arguments in registers which on yet others are passed in memory. Sometimes padding arguments are needed and many more oddities. Similar for results. Inescapably such a program is a permen

Re: Portable syscall inspection

2007-05-31 Thread Ralf Baechle
On Tue, May 29, 2007 at 08:59:37AM +1000, Trent Waddington wrote: > Someone finally noticed that my program that uses ptrace only works on > i386.. > and, by the looks of it, there is no portable way to refer to the > registers of a > user_regs_struct when inspecting a system call. Correct. > I

Portable syscall inspection

2007-05-28 Thread Trent Waddington
Someone finally noticed that my program that uses ptrace only works on i386.. and, by the looks of it, there is no portable way to refer to the registers of a user_regs_struct when inspecting a system call. I will probably end up making a header file for each architecture that defines where in th