This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Fix gdb build on hppa-linux


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

commit 69c67a0b2a93ba8c431d1ebb90d57a1e4d0ec3a1
Author: John David Anglin <danglin@gcc.gnu.org>
Date:   Mon Jun 11 21:15:32 2018 -0400

    Fix gdb build on hppa-linux
    
    Fixes:
    
      CXX    hppa-linux-nat.o
    ../../src/gdb/hppa-linux-nat.c:277:17: error: no 'void hppa_linux_nat_target::fetch_inferior_registers(regcache*, int)' member function declared in class 'hppa_linux_nat_target'
            int regno)
                     ^
    ../../src/gdb/hppa-linux-nat.c:224:1: error: 'void fetch_register(regcache*, int)' defined but not used [-Werror=unused-function]
     fetch_register (struct regcache *regcache, int regno)
     ^~~~~~~~~~~~~~
    
    gdb/ChangeLog:
    
    	* gdb/hppa-linux-nat.c
    	(hppa_linux_nat_target::fetch_inferior_registers): Rename to
    	hppa_linux_nat_target::fetch_registers.

Diff:
---
 gdb/ChangeLog        | 6 ++++++
 gdb/hppa-linux-nat.c | 3 +--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 635f025..fd20071 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2018-06-11  John David Anglin  <danglin@gcc.gnu.org>
+
+	* gdb/hppa-linux-nat.c
+	(hppa_linux_nat_target::fetch_inferior_registers): Rename to
+	hppa_linux_nat_target::fetch_registers.
+
 2018-06-11  Alan Hayward  <alan.hayward@arm.com>
 
 	* aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Add mappings.
diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c
index 6fd70c6..440bde7 100644
--- a/gdb/hppa-linux-nat.c
+++ b/gdb/hppa-linux-nat.c
@@ -273,8 +273,7 @@ store_register (const struct regcache *regcache, int regno)
    point registers depending upon the value of regno.  */
 
 void
-hppa_linux_nat_target::fetch_inferior_registers (struct regcache *regcache,
-						 int regno)
+hppa_linux_nat_target::fetch_registers (struct regcache *regcache, int regno)
 {
   if (-1 == regno)
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]