Patchwork Fix gdb build on hppa-linux

login
register
mail settings
Submitter Dave Anglin
Date June 9, 2018, 2:59 p.m.
Message ID <9be0a93b-40c0-b4a8-fb49-4d743fb2c7e7@bell.net>
Download mbox | patch
Permalink /patch/27724/
State New
Headers show

Comments

Dave Anglin - June 9, 2018, 2:59 p.m.
The attached patch fixes the following compile error on hppa-linux:

   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)
  ^~~~~~~~~~~~~~

Please install if okay.

Thanks,
Dave Anglin
Simon Marchi - June 12, 2018, 1:20 a.m.
On 2018-06-09 10:59, John David Anglin wrote:
> The attached patch fixes the following compile error on hppa-linux:
> 
>   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)
>  ^~~~~~~~~~~~~~
> 
> Please install if okay.
> 
> Thanks,
> Dave Anglin

Thanks, I pushed it.

Simon

Patch

diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c
index 6fd70c6686..440bde703f 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)
     {