This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ptrace for mips n32 and n64

On Mar 14, 2003, Daniel Jacobowitz <drow at mvista dot com> wrote:

> On Fri, Mar 14, 2003 at 11:35:42AM -0300, Alexandre Oliva wrote:
>> Yay.  Lots of code duplication.  I'm sure Uli will love this patch.
>> :-/ Ok?  (the point being that ptrace must take as argument and return
>> 64-bit values on n32)

> Why must it?

Because that's the ABI defined by the kernel, as much as I dislike
it.  Of course, glibc could adapt the interface and return longs even
though the kernel gives it a long long, and pass a long long where it
gets just a long.  I don't know much about the interface of ptrace,
anyway.  I just did what Kevin told me he needed for his debugging
code to work.

> I can't think of any reason for it to take 64-bit
> values.  It'll also be a tremendous headache, since you'll have to cast
> any pointers passed to ptrace.

If you pass a pointer to ptrace, it will be sign-extended to 64 bits,
just as it should.  No hassle.

Alexandre Oliva   Enjoy Guarana', see
Red Hat GCC Developer                 aoliva at {redhat dot com,}
CS PhD student at IC-Unicamp        oliva at {lsd dot ic dot unicamp dot br,}
Free Software Evangelist                Professional serial bug killer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]