From patchwork Sat Jun 9 14:59:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: John David Anglin X-Patchwork-Id: 27724 Received: (qmail 108645 invoked by alias); 9 Jun 2018 14:59:36 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 108623 invoked by uid 89); 9 Jun 2018 14:59:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.2 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.2 spammy=John, Dave X-HELO: mtlfep02.bell.net Received: from belmont80srvr.owm.bell.net (HELO mtlfep02.bell.net) (184.150.200.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 09 Jun 2018 14:59:33 +0000 Received: from bell.net mtlfep02 184.150.200.30 by mtlfep02.bell.net with ESMTP id <20180609145931.OVOX8528.mtlfep02.bell.net@mtlspm02.bell.net> for ; Sat, 9 Jun 2018 10:59:31 -0400 Received: from [192.168.2.49] (really [69.158.175.55]) by mtlspm02.bell.net with ESMTP id <20180609145931.BJFW6415.mtlspm02.bell.net@[192.168.2.49]>; Sat, 9 Jun 2018 10:59:31 -0400 To: gdb-patches@sourceware.org From: John David Anglin Subject: [PATCH] Fix gdb build on hppa-linux Message-ID: <9be0a93b-40c0-b4a8-fb49-4d743fb2c7e7@bell.net> Date: Sat, 9 Jun 2018 10:59:28 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 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 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) {