This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: Does today's gdb compile on Linux?


On Tue, Jan 18, 2000 at 05:23:18PM -0800, Ulrich Drepper wrote:
> "H . J . Lu" <hjl@valinux.com> writes:
> 
> 
> No!!!  Use the definitions from ucontext.  Why the hell do you think I
> changed that?  The files procfs.h and ucontext.h must be includable at
> the same time.
> 

The original definitions came from <asm/user.h>. They are used by
ptrace. They are have different meanings than those from ucontext.h. 

It is too bad that the same names, gregset_t and fpregset_t, are used
for different purposes. It is wrong to include ucontext.h in procfs.h
to get "gregset_t" and "fpregset_t". I guess we can modify gdb to use
struct user_fpregs_struct and struct user_regs_struct directly. On the
other hand, it will be tricky to make gdb compile under glibc 2.0, 2.1,
2.2 and libc 5.


-- 
H.J. Lu (hjl@gnu.org)

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