From: Gary Benson Date: Mon, 1 Oct 2018 09:37:39 +0000 (+0100) Subject: Update GDB gdb_proc_service.h workaround to match gdbserver X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=358ffcf28cf6e7c23311e91869ada4c480527d93;p=binutils-gdb.git 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 --git a/gdb/ChangeLog b/gdb/ChangeLog index 698c9b7b677..2efe484c4a7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-10-01 Gary Benson + + * 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 * configure.ac: Check if sys/procfs.h defines elf_fpregset_t. diff --git a/gdb/gdb_proc_service.h b/gdb/gdb_proc_service.h index ee9358d054a..16cf51216f8 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