From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9360 invoked by alias); 24 Jun 2003 08:14:49 -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 22037 invoked from network); 24 Jun 2003 07:51:32 -0000 Received: from unknown (HELO mail.cs.umass.edu) (128.119.243.168) by sources.redhat.com with SMTP; 24 Jun 2003 07:51:32 -0000 Received: from localhost (IDENT:LyBm8youAnfzFhKTqwrXAGx96lN/2yth@loki.cs.umass.edu [128.119.243.168]) by mail.cs.umass.edu (8.12.9/8.12.5) with ESMTP id h5O7ohdF017890; Tue, 24 Jun 2003 03:50:43 -0400 Date: Tue, 24 Jun 2003 08:14:00 -0000 Message-Id: <20030624.035043.10249396.kazu@cs.umass.edu> To: gdb-patches@sources.redhat.com CC: msnyder@redhat.com, rsandifo@redhat.com, aoliva@redhat.com, vinschen@redhat.com, dvenkat@noida.hcltech.com Subject: [preliminary patch] sim/h8300/compile.c: abort when abort is called. From: Kazu Hirata Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Net-Tests: NO (loki, relay 128.119.243.168) X-Spam-Checked: This message probably not SPAM X-Spam-Score: -0.5, Required: 5 X-Spam-Tests: PATCH_UNIFIED_DIFF X-Spam-Report: ---- Start SpamAssassin results -0.50 points, 5 required; * -0.5 -- BODY: Contains what looks like a patch from diff -u ---- End of SpamAssassin results X-Scanned-By: MIMEDefang 2.30 (www . roaringpenguin . com / mimedefang) X-SW-Source: 2003-06/txt/msg00750.txt.bz2 Hi, Attached is a patch to teach the h8300 simulator to abort when abort is called. Without this, I get spurious XPASS when testing gcc. Although the patched simulator works, my gut feeling is telling me that there should be a better way to do this. Any thought? By the way, the last h8300-side function that causes the simulator to abort is _kill() in newlib/libc/sys/h8300hms/misc.c, which in turn issues sleep instruction. Kazu Hirata 2003-06-24 Kazu Hirata * compile.c (sim_resume): Abort when sleep instruction is used without the magic number. Index: compile.c =================================================================== RCS file: /cvs/src/src/sim/h8300/compile.c,v retrieving revision 1.31 diff -u -r1.31 compile.c --- compile.c 19 Jun 2003 02:14:14 -0000 1.31 +++ compile.c 24 Jun 2003 07:40:12 -0000 @@ -3577,8 +3577,7 @@ } else { - /* Treat it as a sigtrap. */ - sim_engine_set_run_state (sd, sim_stopped, SIGTRAP); + abort (); } goto end;