From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 119687 invoked by alias); 7 Jul 2018 18:24:50 -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 119568 invoked by uid 89); 7 Jul 2018 18:24:30 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*M:home, H*MI:home, HContent-Transfer-Encoding:8bit X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.9) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 07 Jul 2018 18:24:28 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 41NKkL0xsZz1qtdw; Sat, 7 Jul 2018 20:24:25 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 41NKkK5LjDz1rZMV; Sat, 7 Jul 2018 20:24:25 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id 2Z_DuxXJEQKB; Sat, 7 Jul 2018 20:24:24 +0200 (CEST) Received: from igel.home (ppp-188-174-157-16.dynamic.mnet-online.de [188.174.157.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 7 Jul 2018 20:24:24 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id AC5FE2C1063; Sat, 7 Jul 2018 20:24:23 +0200 (CEST) From: Andreas Schwab To: Simon Marchi Cc: Simon Marchi , gdb-patches@sourceware.org, Pedro Alves Subject: Re: [PATCH] Make target_read_alloc & al return vectors References: <1521691401-21512-1-git-send-email-simon.marchi@ericsson.com> <5ead66c6-e0cb-c9b6-b882-79c232cc389c@simark.ca> <87efgfyn76.fsf@igel.home> <7b3379693d002e788af87bb89a1078e3@simark.ca> X-Yow: Zippy's brain cells are straining to bridge synapses... Date: Sat, 07 Jul 2018 18:24:00 -0000 In-Reply-To: <7b3379693d002e788af87bb89a1078e3@simark.ca> (Simon Marchi's message of "Sat, 07 Jul 2018 13:57:52 -0400") Message-ID: <87a7r2zyy0.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-SW-Source: 2018-07/txt/msg00175.txt.bz2 On Jul 07 2018, Simon Marchi wrote: > On 2018-07-07 13:23, Andreas Schwab wrote: >> This is the next error: >> >> ../../gdb/ia64-linux-nat.c:73:8: error: conflicting return type >> specified for ‘virtual bool >> ia64_linux_nat_target::have_steppable_watchpoint()’ >> bool have_steppable_watchpoint () { return 1; } >> ^ >> In file included from ../../gdb/inferior.h:41:0, >> from ../../gdb/ia64-linux-nat.c:22: >> ../../gdb/target.h:554:17: error: overriding ‘virtual int >> target_ops::have_steppable_watchpoint()’ >> virtual int have_steppable_watchpoint () >> ^ > > The fix for this is probably obvious (change int for bool). Can you take > care of it? I'm not on my gdb-development-capable computer, and probably > don't have an ia64 cross-compiler handy. Does the patch for > target_read_alloc look good to you? This is the next error: CXXLD gdb ia64-linux-nat.o:(.data.rel.ro._ZTV21ia64_linux_nat_target[_ZTV21ia64_linux_nat_target]+0x170): undefined reference to `ia64_linux_nat_target::can_use_hw_breakpoint(bptype, int, int)' ia64-linux-nat.o:(.data.rel.ro._ZTV21ia64_linux_nat_target[_ZTV21ia64_linux_nat_target]+0x650): undefined reference to `ia64_linux_nat_target::read_description()' ia64-linux-nat.o:(.data.rel.ro._ZTV21ia64_linux_nat_target[_ZTV21ia64_linux_nat_target]+0xba0): undefined reference to `ia64_linux_nat_target::low_new_thread(lwp_info*)' collect2: error: ld returned 1 exit status Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."