[binutils-gdb] Update GDB gdb_proc_service.h workaround to match gdbserver

Gary Benson gary@sourceware.org
Mon Oct 1 09:51:00 GMT 2018


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=358ffcf28cf6e7c23311e91869ada4c480527d93

commit 358ffcf28cf6e7c23311e91869ada4c480527d93
Author: Gary Benson <gbenson@redhat.com>
Date:   Mon Oct 1 10:37:39 2018 +0100

    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.

Diff:
---
 gdb/ChangeLog          | 5 +++++
 gdb/gdb_proc_service.h | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 698c9b7..2efe484 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/gdb_proc_service.h b/gdb/gdb_proc_service.h
index ee9358d..16cf512 100644
--- a/gdb/gdb_proc_service.h
+++ b/gdb/gdb_proc_service.h
@@ -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



More information about the Gdb-cvs mailing list