From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5400 invoked by alias); 4 Sep 2012 06:50:37 -0000 Received: (qmail 5389 invoked by uid 22791); 4 Sep 2012 06:50:35 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from co1ehsobe001.messaging.microsoft.com (HELO co1outboundpool.messaging.microsoft.com) (216.32.180.184) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 04 Sep 2012 06:50:11 +0000 Received: from mail99-co1-R.bigfish.com (10.243.78.244) by CO1EHSOBE003.bigfish.com (10.243.66.66) with Microsoft SMTP Server id 14.1.225.23; Tue, 4 Sep 2012 06:50:07 +0000 Received: from mail99-co1 (localhost [127.0.0.1]) by mail99-co1-R.bigfish.com (Postfix) with ESMTP id BEEA960099; Tue, 4 Sep 2012 06:50:07 +0000 (UTC) X-Forefront-Antispam-Report: CIP:59.163.77.177;KIP:(null);UIP:(null);IPV:NLI;H:KCHJEXHC02.kpit.com;RD:59.163.77.177.static.vsnl.net.in;EFVD:NLI X-SpamScore: -9 X-BigFish: VPS-9(zz936eI103dK154dMzz1202hzz8275bhz2dh2a8h668h839h944hd25hf0ah107ah1220h1155h) Received: from mail99-co1 (localhost.localdomain [127.0.0.1]) by mail99-co1 (MessageSwitch) id 1346741404755989_14389; Tue, 4 Sep 2012 06:50:04 +0000 (UTC) Received: from CO1EHSMHS001.bigfish.com (unknown [10.243.78.234]) by mail99-co1.bigfish.com (Postfix) with ESMTP id B4FF5C0047; Tue, 4 Sep 2012 06:50:04 +0000 (UTC) Received: from KCHJEXHC02.kpit.com (59.163.77.177) by CO1EHSMHS001.bigfish.com (10.243.66.11) with Microsoft SMTP Server (TLS) id 14.1.225.23; Tue, 4 Sep 2012 06:50:02 +0000 Received: from KCHJEXMB03.kpit.com ([169.254.4.166]) by KCHJEXHC02.kpit.com ([172.10.15.74]) with mapi id 14.01.0289.001; Tue, 4 Sep 2012 12:19:59 +0530 From: Kaushik Phatak To: Mike Frysinger CC: "gdb-patches@sourceware.org" , Yao Qi , Pedro Alves Subject: RE: [RFC] New GDB Port CR16 Date: Tue, 04 Sep 2012 06:50:00 -0000 Message-ID: References: <503B9E59.6050502@codesourcery.com> <504478D0.4040202@redhat.com> In-Reply-To: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: kpitcummins.com 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/msg00026.txt.bz2 Hi Pedro, > Is this dependency on host signal defines what is done on other sims? This was probably added when breakpoint support was being added to this sim port with reference of the SH port I believe. > there is cruft like this in other sims. it probably would be desirable t= o clean it up. Yes Mike, I agree. I have tested it without this hunk and breakpoints seem = to work as expected. Please see below the patch that reverts this in sim. I am rearranging some code to create cr16-linux-tdep.c file as suggested by= Yao and will post the gdb related patches soon. Thanks! 2012-09-03 Kaushik Phatak sim/cr16/ChangeLog: * interp.c: Clean SIGBUS related macro. --- gdb_src.orig/sim/cr16/interp.c 2012-09-04 12:08:34.000000000 +0530 +++ gdb_src/src/sim/cr16/interp.c 2012-06-18 05:04:17.000000000 +0530 @@ -1192,11 +1192,7 @@ sim_resume (SIM_DESC sd, int step, int s iaddr =3D imem_addr ((uint32)PC); if (iaddr =3D=3D State.mem.fault) { -#ifdef SIGBUS State.exception =3D SIGBUS; -#else - State.exception =3D SIGSEGV; -#endif break; }