This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


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

Re: Is elf_gregset_t the correct type for all Linuxen?


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

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