From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 62372 invoked by alias); 20 Oct 2015 19:24:23 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 62359 invoked by uid 89); 20 Oct 2015 19:24:23 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.2 X-HELO: usevmg21.ericsson.net Received: from usevmg21.ericsson.net (HELO usevmg21.ericsson.net) (198.24.6.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 20 Oct 2015 19:24:22 +0000 Received: from EUSAAHC004.ericsson.se (Unknown_Domain [147.117.188.84]) by usevmg21.ericsson.net (Symantec Mail Security) with SMTP id 55.93.26730.63826265; Tue, 20 Oct 2015 13:40:38 +0200 (CEST) Received: from elxa4wqvvz1.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.84) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 20 Oct 2015 15:24:19 -0400 From: Antoine Tremblay To: CC: Antoine Tremblay Subject: [PATCH] Fix --host cris-*-linux build of GDBServer. Date: Wed, 21 Oct 2015 10:01:00 -0000 Message-ID: <1445369050-18033-1-git-send-email-antoine.tremblay@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2015-10/txt/msg00387.txt.bz2 Compiling GDBServer with --host cris-*-linux yields a compilation error : linux-cris-low.c:65:21: error: ‘void’ must be the only parameter This patch fixes the issue by removing the void parameter in cris_get_pc. gdb/gdbserver/ChangeLog: * linux-cris-low.c (cris_get_pc): Remove void arg. --- gdb/gdbserver/linux-cris-low.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/gdbserver/linux-cris-low.c b/gdb/gdbserver/linux-cris-low.c index e0bfa1a..135e37a 100644 --- a/gdb/gdbserver/linux-cris-low.c +++ b/gdb/gdbserver/linux-cris-low.c @@ -62,7 +62,7 @@ cris_cannot_fetch_register (int regno) extern int debug_threads; static CORE_ADDR -cris_get_pc (struct regcache *regcache, void) +cris_get_pc (struct regcache *regcache) { unsigned long pc; collect_register_by_name (regcache, "pc", &pc); -- 1.9.1