From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 39850 invoked by alias); 3 Nov 2015 14:27:03 -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 39789 invoked by uid 89); 3 Nov 2015 14:27:02 -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:01 +0000 Received: from EUSAAHC005.ericsson.se (Unknown_Domain [147.117.188.87]) by usevmg21.ericsson.net (Symantec Mail Security) with SMTP id B1.E6.26730.AC658365; Tue, 3 Nov 2015 07:40:10 +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:52 -0500 From: Simon Marchi To: CC: Simon Marchi Subject: [PATCH c++ 09/12] linux-mips-low.c: Fix type of mips_add_watchpoint parameter Date: Tue, 03 Nov 2015 14:27:00 -0000 Message-ID: <1446560804-18858-9-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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00089.txt.bz2 From: Simon Marchi Fixes /home/simark/src/binutils-gdb/gdb/gdbserver/linux-mips-low.c: In function ‘void mips_add_watchpoint(arch_process_info*, CORE_ADDR, int, int)’: /home/simark/src/binutils-gdb/gdb/gdbserver/linux-mips-low.c:368:19: error: invalid conversion from ‘int’ to ‘target_hw_bp_type’ [-fpermissive] new_watch->type = watch_type; ^ gdb/gdbserver/ChangeLog: * linux-mips-low.c (mips_linux_new_thread): Change type of watch_type to enum target_hw_bp_type. --- gdb/gdbserver/linux-mips-low.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdb/gdbserver/linux-mips-low.c b/gdb/gdbserver/linux-mips-low.c index 86f7962..2cfa7c2 100644 --- a/gdb/gdbserver/linux-mips-low.c +++ b/gdb/gdbserver/linux-mips-low.c @@ -356,8 +356,8 @@ mips_linux_new_thread (struct lwp_info *lwp) /* Create a new mips_watchpoint and add it to the list. */ static void -mips_add_watchpoint (struct arch_process_info *private, CORE_ADDR addr, - int len, int watch_type) +mips_add_watchpoint (struct arch_process_info *private, CORE_ADDR addr, int len, + enum target_hw_bp_type watch_type) { struct mips_watchpoint *new_watch; struct mips_watchpoint **pw; -- 2.5.1