From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19860 invoked by alias); 14 Sep 2006 01:22:20 -0000 Received: (qmail 19848 invoked by uid 22791); 14 Sep 2006 01:22:19 -0000 X-Spam-Check-By: sourceware.org Received: from omta05sl.mx.bigpond.com (HELO omta05sl.mx.bigpond.com) (144.140.93.195) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Sep 2006 01:22:16 +0000 Received: from kiwi.ods.com.au ([60.227.162.172]) by omta05sl.mx.bigpond.com with ESMTP id <20060914012212.OOKJ15497.omta05sl.mx.bigpond.com@kiwi.ods.com.au>; Thu, 14 Sep 2006 01:22:12 +0000 Received: from [172.16.100.194] (lapdog.ods.com.au [172.16.100.194]) by kiwi.ods.com.au (8.12.8/8.12.8) with ESMTP id k8E1MAOG023811; Thu, 14 Sep 2006 11:22:11 +1000 Message-ID: <4508AEC7.4040803@rtems.org> Date: Thu, 14 Sep 2006 01:22:00 -0000 From: Chris Johns User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: gdb-patches@sources.redhat.com CC: Eli Zaretskii Subject: Re: H8300 simulator on MinGW fails to compile. References: <4507FA7A.70504@rtems.org> <450865A0.7070604@rtems.org> <20060913203009.GA21009@nevyn.them.org> In-Reply-To: <20060913203009.GA21009@nevyn.them.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00073.txt.bz2 Daniel Jacobowitz wrote: > First, a minor point: your patch was reversed, deleting instead > of adding. New file second on the diff command line. Oops. I will not post again until your second point is resolved. > > On Thu, Sep 14, 2006 at 06:10:08AM +1000, Chris Johns wrote: >> ../../../gdb-6.5/sim/h8300/compile.c: In function `sim_resume': >> ../../../gdb-6.5/sim/h8300/compile.c:1942: error: `SIGBUS' undeclared >> (first use in this function) >> ../../../gdb-6.5/sim/h8300/compile.c:1942: error: (Each undeclared >> identifier is reported only once >> ../../../gdb-6.5/sim/h8300/compile.c:1942: error: for each function it >> appears in.) >> make[3]: *** [compile.o] Error 1 > > Some work has been done to reduce the use of host signal numbers in the > simulator. Rather than adding more bandaids, we need to do more to > switch to either the SIM_* or TARGET_SIGNAL_* constants. The host's > numbers just aren't relevant. Did wonder why simulator signals needed to equated to the host signals. I am still not clear why the code is like this. > > Unfortunately all the code is somewhat tangled in multiple sims. > I see what you mean. The TARGET_SIGNAL_* shows up in the ppc, d10v, and arm sims. The host type SIG* such as SIGBUS appear to be in most of the sims. Is the solution to change sim-signal.c to use TARGET_SIGNAL_* and then change the effected sim files to SIM_SIG* ? Regards Chris