From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17366 invoked by alias); 4 Sep 2012 03:52:52 -0000 Received: (qmail 17357 invoked by uid 22791); 4 Sep 2012 03:52:51 -0000 X-SWARE-Spam-Status: No, hits=-5.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-vc0-f169.google.com (HELO mail-vc0-f169.google.com) (209.85.220.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 04 Sep 2012 03:52:28 +0000 Received: by vcbfl13 with SMTP id fl13so7013017vcb.0 for ; Mon, 03 Sep 2012 20:52:28 -0700 (PDT) Received: by 10.58.137.34 with SMTP id qf2mr3820079veb.9.1346730747968; Mon, 03 Sep 2012 20:52:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.58.164.66 with HTTP; Mon, 3 Sep 2012 20:52:06 -0700 (PDT) In-Reply-To: <504478D0.4040202@redhat.com> References: <503B9E59.6050502@codesourcery.com> <504478D0.4040202@redhat.com> From: Mike Frysinger Date: Tue, 04 Sep 2012 03:52:00 -0000 Message-ID: Subject: Re: [RFC] New GDB Port CR16 To: Pedro Alves Cc: Kaushik Phatak , "gdb-patches@sourceware.org" , Yao Qi Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-09/txt/msg00024.txt.bz2 On Mon, Sep 3, 2012 at 5:30 AM, Pedro Alves wrote: > On 08/30/2012 06:23 AM, Kaushik Phatak wrote: >> --- gdb_src.orig/sim/cr16/interp.c 2012-06-18 05:04:17.000000000 +0530 >> +++ ./gdb_src/sim/cr16/interp.c 2012-08-17 15:41:35.000000000 +0530 >> @@ -1192,7 +1192,11 @@ sim_resume (SIM_DESC sd, int step, int s >> iaddr = imem_addr ((uint32)PC); >> if (iaddr == State.mem.fault) >> { >> +#ifdef SIGBUS >> State.exception = SIGBUS; >> +#else >> + State.exception = SIGSEGV; >> +#endif >> break; >> } > > Is this dependency on host signal defines what is done on other sims? > It rings alarm bells to me that a sim's behavior would depend on > which host it runs on. there is cruft like this in other sims. it probably would be desirable to clean it up. -mike