Patchwork [3/5] Update GDB gdb_proc_service.h workaround to match gdbserver

login
register
mail settings
Submitter Gary Benson
Date Sept. 28, 2018, 2:49 p.m.
Message ID <1538146201-16374-4-git-send-email-gbenson@redhat.com>
Download mbox | patch
Permalink /patch/29570/
State New
Headers show

Comments

Gary Benson - Sept. 28, 2018, 2:49 p.m.
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          | 5 +++++
 gdb/gdb_proc_service.h | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)
Tom Tromey - Sept. 28, 2018, 7:36 p.m.
>>>>> "Gary" == Gary Benson <gbenson@redhat.com> writes:

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

Gary> gdb/ChangeLog:

Gary> 	* gdb_proc_service.h: Use elf_gregset_t if prgregset_t is
Gary> 	undefined.  Use elf_fpregset_t if prfpregset_t is undefined.

This is ok.

Tom

Patch

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