Update GDB gdb_proc_service.h workaround to match gdbserver

This commit updates GDB's gdb_proc_service.h to use elf_{g,fp}regset_t
instead of gdb_{g,fp}regset_t if pr{g,fp}regset_t are undefined.
The types have been equivalent on GNU/Linux since at least 2005.

gdb/ChangeLog:

	* gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
	undefined.  Use elf_fpregset_t if prfpregset_t is undefined.
This commit is contained in:
Gary Benson 2018-10-01 10:37:39 +01:00
parent 43b7e92b0c
commit 358ffcf28c
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2018-10-01 Gary Benson <gbenson@redhat.com>
* gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
undefined. Use elf_fpregset_t if prfpregset_t is undefined.
2018-10-01 Gary Benson <gbenson@redhat.com>
* configure.ac: Check if sys/procfs.h defines elf_fpregset_t.

View File

@ -96,11 +96,11 @@ typedef void *psaddr_t;
#endif
#ifndef HAVE_PRGREGSET_T
typedef gdb_gregset_t prgregset_t;
typedef elf_gregset_t prgregset_t;
#endif
#ifndef HAVE_PRFPREGSET_T
typedef gdb_fpregset_t prfpregset_t;
typedef elf_fpregset_t prfpregset_t;
#endif
/* This type is opaque in this interface. It's defined by the user of