ptrace for mips n32 and n64
Alexandre Oliva
aoliva@redhat.com
Fri Mar 14 16:52:00 GMT 2003
On Mar 14, 2003, Daniel Jacobowitz <drow@mvista.com> wrote:
> Eh? No it won't. ptrace is exported as a varargs function. Think
> about what happens when you pass a 32-bit pointer to a varargs function
> that pops a long long argument.
Let's see... The 32-bit argument gets passed in a single register,
therefore it is sign-extended. The entry code may or may not save the
register as a 64-bit value in the stack, but regardless of how it does
it, it just works. Remember n32 is a 64-bit architecture. All
arguments are passed in 64-bit slots, registers or stack.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Libc-alpha
mailing list