Is elf_gregset_t the correct type for all Linuxen?

Michael Snyder msnyder@cygnus.com
Thu May 25 11:36:00 GMT 2000


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


More information about the Gdb-patches mailing list