[binutils-gdb] Make the class name in the definition match the declaration

Christian Biesinger cbiesinger@sourceware.org
Fri Jan 24 15:40:00 GMT 2020


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

commit 3050c6f4bcfd43c526b4a47fcb0ac15d3de5c1fd
Author: Christian Biesinger <cbiesinger@google.com>
Date:   Fri Jan 24 15:12:48 2020 +0100

    Make the class name in the definition match the declaration
    
    Fixes a compile error because the class is actually called
    arm_netbsd_nat_target.
    
    gdb/ChangeLog:
    
    2020-01-24  Christian Biesinger  <cbiesinger@google.com>
    
    	* arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
    	(arm_netbsd_nat_target::fetch_registers): ...this.
    	(arm_nbsd_nat_target::store_registers): Rename to...
    	(arm_netbsd_nat_target::store_registers): ...this.
    
    Change-Id: Ibebfab9edeff48f54c32d0745afda1d74d31de92

Diff:
---
 gdb/ChangeLog      | 7 +++++++
 gdb/arm-nbsd-nat.c | 4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a708c3f..3d166f0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
 
+	* arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
+	(arm_netbsd_nat_target::fetch_registers): ...this.
+	(arm_nbsd_nat_target::store_registers): Rename to...
+	(arm_netbsd_nat_target::store_registers): ...this.
+
+2020-01-24  Christian Biesinger  <cbiesinger@google.com>
+
 	* arm-nbsd-nat.c: Define _KERNTYPES to get the declaration of
 	register_t.
 
diff --git a/gdb/arm-nbsd-nat.c b/gdb/arm-nbsd-nat.c
index 33ae790..11afc28 100644
--- a/gdb/arm-nbsd-nat.c
+++ b/gdb/arm-nbsd-nat.c
@@ -192,7 +192,7 @@ fetch_fp_regs (struct regcache *regcache)
 }
 
 void
-arm_nbsd_nat_target::fetch_registers (struct regcache *regcache, int regno)
+arm_netbsd_nat_target::fetch_registers (struct regcache *regcache, int regno)
 {
   if (regno >= 0)
     {
@@ -381,7 +381,7 @@ store_fp_regs (const struct regcache *regcache)
 }
 
 void
-arm_nbsd_nat_target::store_registers (struct regcache *regcache, int regno)
+arm_netbsd_nat_target::store_registers (struct regcache *regcache, int regno)
 {
   if (regno >= 0)
     {



More information about the Gdb-cvs mailing list