From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74273 invoked by alias); 4 Aug 2015 16:29:04 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 74238 invoked by uid 89); 4 Aug 2015 16:29:03 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 04 Aug 2015 16:29:02 +0000 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id ADC19C1F1B; Tue, 4 Aug 2015 16:29:01 +0000 (UTC) Received: from [10.36.4.236] (vpn1-4-236.ams2.redhat.com [10.36.4.236]) by int-mx14.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t74GSxPS014960 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 Aug 2015 12:29:00 -0400 Subject: Re: m32c gdb link error on master To: Joel Sherrill , DJ Delorie References: <55BFEAF1.3050206@oarcorp.com> Cc: "gdb@sourceware.org" From: Nick Clifton Message-ID: <55C0E84B.4090701@redhat.com> Date: Tue, 04 Aug 2015 16:29:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <55BFEAF1.3050206@oarcorp.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015-08/txt/msg00004.txt.bz2 Hi DJ, On 03/08/15 23:28, Joel Sherrill wrote: > The m32c fails to link gdb when the simulator is enabled. It > fails with this error: > > remote-sim.o: In function `gdbsim_files_info': > /home/joel/test-gcc/b-m32c-rtems4.11-bin/gdb/../../binutils-gdb/gdb/remote-sim.c:1163: > undefined reference to `sim_info' The patch below provides a stub function to fix this problem. OK to apply ? Cheers Nick sim/m32c/ChangeLog 2015-08-04 Nick Clifton * gdb-if.c (sim_info): Stub function to allow GDB to be built with this simulator. diff --git a/sim/m32c/gdb-if.c b/sim/m32c/gdb-if.c index be00545..373b551 100644 --- a/sim/m32c/gdb-if.c +++ b/sim/m32c/gdb-if.c @@ -705,3 +705,10 @@ sim_complete_command (SIM_DESC sd, const char *text, const char *word) { return NULL; } + +void +sim_info (SIM_DESC sd, int verbose) +{ + printf ("The m32c minisim doesn't collect any statistics.\n"); +} +