This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: ptrace for mips n32 and n64
On Mar 14, 2003, Daniel Jacobowitz <drow at mvista dot 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 at {redhat dot com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva at {lsd dot ic dot unicamp dot br, gnu.org}
Free Software Evangelist Professional serial bug killer