A PPC patch for glibc 2.1

Geoff Keating geoffk@ozemail.com.au
Fri Dec 4 18:11:00 GMT 1998


> From: hjl@lucon.org (H.J. Lu)
> Date: Thu, 3 Dec 1998 13:52:05 -0800 (PST)
> Cc: howarth@bromo.med.uc.edu, libc-hacker@cygnus.com

> > [geoffk@geoffk geoffk]$ cat > x.c
> > #include <sys/types.h>
> > #include <sys/user.h>
> > #include <sys/procfs.h>
> > [geoffk@geoffk geoffk]$ gcc x.c -c
> > [geoffk@geoffk geoffk]$ 
> 
> Please add
> 
> #include <sys/ptrace.h>
> 
> to see what happens.

Aaah.  OK.  The problem is that asm/ptrace.h trips up sys/ptrace.h.

> > Perhaps it would be better if you only defined the things you really
> > needed.  But I can't see anything at all in this file that you should
> > need!  They are all either stored in the core file, or don't seem to
> > be particularly relevant to a debugger.  What have I missed?
> > 
> 
> As far as I know, those files are used by gdb only. Noone else
> should use them. I don't have a local PPC machine to find out
> the minimum stuff gdb needs. If you want, I can make the gdb
> 4.17.0.6 patch available so that you can reduce the contents
> of those to minimum.

Send me the patch, and I'll look (please also tell me how to get the
version it patches, I'm currently using gdb 4.16+hacks :-).

-- 
Geoffrey Keating <geoffk@ozemail.com.au>



More information about the Libc-hacker mailing list