Update GDB gdb_proc_service.h workaround to match gdbserver
authorGary Benson <gbenson@redhat.com>
Mon, 1 Oct 2018 09:37:39 +0000 (10:37 +0100)
committerGary Benson <gbenson@redhat.com>
Mon, 1 Oct 2018 09:37:39 +0000 (10:37 +0100)
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.

gdb/ChangeLog
gdb/gdb_proc_service.h

index 698c9b7..2efe484 100644 (file)
@@ -1,5 +1,10 @@
 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.
        (AC_CHECK_HEADERS): Check for linux/elf.h.
        * configure, config.in: Rebuild.
index ee9358d..16cf512 100644 (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