From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23946 invoked by alias); 23 Jun 2003 18:18:56 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 26018 invoked from network); 23 Jun 2003 18:04:13 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 23 Jun 2003 18:04:13 -0000 Received: from int-mx2.corp.redhat.com (nat-pool-rdu-dmz.redhat.com [172.16.52.200] (may be forged)) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h5NI4CH19722 for ; Mon, 23 Jun 2003 14:04:12 -0400 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx2.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h5NI4BS06069 for ; Mon, 23 Jun 2003 14:04:12 -0400 Received: from redhat.com (reddwarf.sfbay.redhat.com [172.16.24.50]) by potter.sfbay.redhat.com (8.11.6/8.11.6) with ESMTP id h5NI4BK09953 for ; Mon, 23 Jun 2003 11:04:11 -0700 Message-ID: <3EF7411B.4010405@redhat.com> Date: Mon, 23 Jun 2003 18:18:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 X-Accept-Language: en-us, en MIME-Version: 1.0 To: gdb-patches@sources.redhat.com Subject: [PATCH] Eliminate ifdef in nrun.c Content-Type: multipart/mixed; boundary="------------050708080000030002040808" X-SW-Source: 2003-06/txt/msg00729.txt.bz2 This is a multi-part message in MIME format. --------------050708080000030002040808 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 104 The h8/300 simulator now handles signals and exit codes correctly, so this hack is no longer required. --------------050708080000030002040808 Content-Type: text/plain; name="tmp" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="tmp" Content-length: 877 2003-06-23 Michael Snyder * nrun.c (main): Delete h8/300 ifdef (sim now handles signals). Index: nrun.c =================================================================== RCS file: /cvs/src/src/sim/common/nrun.c,v retrieving revision 1.3 diff -p -r1.3 nrun.c *** nrun.c 27 Feb 2003 23:26:33 -0000 1.3 --- nrun.c 23 Jun 2003 18:02:06 -0000 *************** main (int argc, char **argv) *** 176,186 **** the signal that the simulator received; we want to return that to indicate failure. */ - #ifdef SIM_H8300 /* FIXME: Ugh. grep for SLEEP in compile.c */ - if (sigrc == SIGILL) - abort (); - sigrc = 0; - #else /* Why did we stop? */ switch (reason) { --- 176,181 ---- *************** main (int argc, char **argv) *** 198,204 **** break; } - #endif return sigrc; } --- 193,198 ---- --------------050708080000030002040808--