From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15947 invoked by alias); 29 Nov 2005 02:44:49 -0000 Received: (qmail 15940 invoked by uid 22791); 29 Nov 2005 02:44:49 -0000 X-Spam-Check-By: sourceware.org Received: from dumbledore.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.11) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 Nov 2005 02:44:48 +0000 Received: (qmail 1385 invoked from network); 29 Nov 2005 02:44:47 -0000 Received: from unknown (HELO ?10.253.176.40?) (mitchell@127.0.0.2) by mail.codesourcery.com with ESMTPA; 29 Nov 2005 02:44:47 -0000 Message-ID: <438BC097.5060205@codesourcery.com> Date: Tue, 29 Nov 2005 14:08:00 -0000 From: Mark Mitchell User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) MIME-Version: 1.0 To: Hans-Peter Nilsson CC: Daniel Jacobowitz , gdb-patches@sources.redhat.com Subject: Re: PATCH: Use target values for signals in simulator References: <20051123185806.29594.qmail@mail.codesourcery.com> <20051125182514.GG736@nevyn.them.org> <43875A5A.3060808@codesourcery.com> <20051128153706.GA31595@nevyn.them.org> <438B5AC8.1050700@codesourcery.com> In-Reply-To: Content-Type: multipart/mixed; boundary="------------030409000709010005030509" 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: 2005-11/txt/msg00497.txt.bz2 This is a multi-part message in MIME format. --------------030409000709010005030509 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-length: 186 > Something went generally wrong. Fixed with this patch; tested by building a cross GDB for cris-elf. Thanks, -- Mark Mitchell CodeSourcery, LLC mark@codesourcery.com (916) 791-8304 --------------030409000709010005030509 Content-Type: text/plain; name="gdb.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="gdb.patch" Content-length: 1336 2005-11-28 Mark Mitchell * sim-signal.c (sim_signal_to_target): Fix typos. Index: sim-signal.c =================================================================== RCS file: /cvs/src/src/sim/common/sim-signal.c,v retrieving revision 1.2 diff -c -5 -p -r1.2 sim-signal.c *** sim-signal.c 28 Nov 2005 18:33:03 -0000 1.2 --- sim-signal.c 29 Nov 2005 02:42:28 -0000 *************** sim_signal_to_host (SIM_DESC sd, SIM_SIG *** 93,103 **** #else return 1; #endif } ! int sim_signal_to_target (SIM_DESC sd, SIM_SIGNAL sig) { switch (sig) { case SIM_SIGINT : --- 93,103 ---- #else return 1; #endif } ! enum target_signal sim_signal_to_target (SIM_DESC sd, SIM_SIGNAL sig) { switch (sig) { case SIM_SIGINT : *************** sim_signal_to_target (SIM_DESC sd, SIM_S *** 113,123 **** return TARGET_SIGNAL_TRAP; case SIM_SIGBUS : return TARGET_SIGNAL_BUS; ! case SIM_SIGSEGV return TARGET_SIGNAL_SEGV; case SIM_SIGXCPU : return TARGET_SIGNAL_XCPU; --- 113,123 ---- return TARGET_SIGNAL_TRAP; case SIM_SIGBUS : return TARGET_SIGNAL_BUS; ! case SIM_SIGSEGV : return TARGET_SIGNAL_SEGV; case SIM_SIGXCPU : return TARGET_SIGNAL_XCPU; --------------030409000709010005030509--