public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix gdb build on hppa-linux
@ 2018-06-09 14:59 John David Anglin
  2018-06-12  1:21 ` Simon Marchi
  0 siblings, 1 reply; 2+ messages in thread
From: John David Anglin @ 2018-06-09 14:59 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 700 bytes --]

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

-- 
John David Anglin  dave.anglin@bell.net


[-- Attachment #2: hppa-linux-nat.c.d --]
[-- Type: text/plain, Size: 681 bytes --]

2018-06-09  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.

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)
     {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix gdb build on hppa-linux
  2018-06-09 14:59 [PATCH] Fix gdb build on hppa-linux John David Anglin
@ 2018-06-12  1:21 ` Simon Marchi
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Marchi @ 2018-06-12  1:21 UTC (permalink / raw)
  To: John David Anglin; +Cc: gdb-patches

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-12  1:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-09 14:59 [PATCH] Fix gdb build on hppa-linux John David Anglin
2018-06-12  1:21 ` Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).