This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: Is elf_gregset_t the correct type for all Linuxen?
- To: Mark Kettenis <kettenis at wins dot uva dot nl>
- Subject: Re: Is elf_gregset_t the correct type for all Linuxen?
- From: Michael Snyder <msnyder at cygnus dot com>
- Date: Thu, 25 May 2000 11:36:16 -0700
- CC: gdb-patches at sourceware dot cygnus dot com, jimb at cygnus dot com, drepper at cygnus dot com
- Organization: Cygnus Solutions
- References: <392C3C9A.C4C@cygnus.com> <200005242146.e4OLkk800352@delius.kettenis.local>
Mark Kettenis wrote:
>
> Date: Wed, 24 May 2000 13:33:30 -0700
> From: Michael Snyder <msnyder@cygnus.com>
> Now, i386-linux-nat.c uses a different data type for
> this function, "elf_gregset_t". I'm wondering if all
> the flavors of Linux gdb should be using this type
> as well?
>
> All Linux architectures define elf_gregset_t, and AFAICT this always
> is the right definitions to use for core dumps and in ptrace requests.
> On architectures other than the i386 gregset_t will probably work,
> unless the i386 implementation was blindly copied.
OK, so I could replace gregset_t with elf_gregset_t
for all linux targets throughout GDB. Correct?
Michael