Does today's gdb compile on Linux?
H . J . Lu
hjl@valinux.com
Tue Jan 18 18:11:00 GMT 2000
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)
More information about the Libc-hacker
mailing list