This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: i386 Linux: provide correct type for orig_eax register
- From: Mark Kettenis <kettenis at science dot uva dot nl>
- To: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: 12 Jan 2002 14:13:43 +0100
- Subject: Re: RFA: i386 Linux: provide correct type for orig_eax register
- References: <20020111222448.A73EC5E9D8@zwingli.cygnus.com>
Jim Blandy <jimb@zwingli.cygnus.com> writes:
> This fixes a failure in callfuncs.exp.
What failure?
> 2002-01-11 Jim Blandy <jimb@redhat.com>
>
> Return the correct virtual type for orig_eax.
> * i386-linux-tdep.c (i386_linux_register_virtual_type): New function.
> * config/i386/tm-linux.h (i386_linux_register_virtual_type): New
> declaration.
> (REGISTER_VIRTUAL_TYPE): Override definition in tm-i386.h; use the
> Linux-specific version.
Hmm. You're compiling GDB on a system that doesn't have
PTRACE_GETFPXREGS in <sys/ptrace.h> isn't it? In that case, I think
your patch is just papering over a more fundamental flaw in the
Linux/x86 port: not always including the SSE registers in the register
file.
I think we should #define HAVE_SSE_REGS unconditionally in
config/i386/tm-linux.h. Later, when things are properly multi-arched,
we can decide whether we actually display thos registers based on the
actual processor model.
Mark