From patchwork Tue Nov 3 14:26:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 9536 Received: (qmail 40096 invoked by alias); 3 Nov 2015 14:27:05 -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 40025 invoked by uid 89); 3 Nov 2015 14:27:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 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, 03 Nov 2015 14:27:03 +0000 Received: from EUSAAHC005.ericsson.se (Unknown_Domain [147.117.188.87]) by usevmg21.ericsson.net (Symantec Mail Security) with SMTP id A2.E6.26730.BC658365; Tue, 3 Nov 2015 07:40:11 +0100 (CET) Received: from elxcz23q12-y4.dyn.mo.ca.am.ericsson.se (147.117.188.8) by smtps-am.internal.ericsson.com (147.117.188.87) with Microsoft SMTP Server (TLS) id 14.3.248.2; Tue, 3 Nov 2015 09:26:53 -0500 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH c++ 11/12] linux-mips-low.c: Add casts Date: Tue, 3 Nov 2015 09:26:43 -0500 Message-ID: <1446560804-18858-11-git-send-email-simon.marchi@ericsson.com> In-Reply-To: <1446560804-18858-1-git-send-email-simon.marchi@ericsson.com> References: <1446560804-18858-1-git-send-email-simon.marchi@ericsson.com> MIME-Version: 1.0 X-IsSubscribed: yes From: Simon Marchi Fixes a bunch of: /home/simark/src/binutils-gdb/gdb/gdbserver/linux-mips-low.c: In function ‘void mips_store_fpregset(regcache*, const void*)’: /home/simark/src/binutils-gdb/gdb/gdbserver/linux-mips-low.c:809:39: error: invalid conversion from ‘const void*’ to ‘const mips_register*’ [-fpermissive] const union mips_register *regset = buf; ^ gdb/gdbserver/ChangeLog: * linux-mips-low.c (mips_fill_gregset): Add cast. (mips_store_gregset): Likewise. (mips_fill_fpregset): Likewise. (mips_store_fpregset): Likewise. --- gdb/gdbserver/linux-mips-low.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gdb/gdbserver/linux-mips-low.c b/gdb/gdbserver/linux-mips-low.c index 0525522..459f4fc 100644 --- a/gdb/gdbserver/linux-mips-low.c +++ b/gdb/gdbserver/linux-mips-low.c @@ -724,7 +724,7 @@ mips_supply_register_32bit (struct regcache *regcache, static void mips_fill_gregset (struct regcache *regcache, void *buf) { - union mips_register *regset = buf; + union mips_register *regset = (union mips_register *) buf; int i, use_64bit; const struct target_desc *tdesc = regcache->tdesc; @@ -753,7 +753,7 @@ mips_fill_gregset (struct regcache *regcache, void *buf) static void mips_store_gregset (struct regcache *regcache, const void *buf) { - const union mips_register *regset = buf; + const union mips_register *regset = (const union mips_register *) buf; int i, use_64bit; use_64bit = (register_size (regcache->tdesc, 0) == 8); @@ -781,7 +781,7 @@ mips_store_gregset (struct regcache *regcache, const void *buf) static void mips_fill_fpregset (struct regcache *regcache, void *buf) { - union mips_register *regset = buf; + union mips_register *regset = (union mips_register *) buf; int i, use_64bit, first_fp, big_endian; use_64bit = (register_size (regcache->tdesc, 0) == 8); @@ -806,7 +806,7 @@ mips_fill_fpregset (struct regcache *regcache, void *buf) static void mips_store_fpregset (struct regcache *regcache, const void *buf) { - const union mips_register *regset = buf; + const union mips_register *regset = (const union mips_register *) buf; int i, use_64bit, first_fp, big_endian; use_64bit = (register_size (regcache->tdesc, 0) == 8);