From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17421 invoked by alias); 24 Jun 2003 23:04:29 -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 21828 invoked from network); 24 Jun 2003 22:24:20 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 24 Jun 2003 22:24:20 -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 h5OMOJH20572 for ; Tue, 24 Jun 2003 18:24:19 -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 h5OMOIS08083; Tue, 24 Jun 2003 18:24:18 -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 h5OMOIK11283; Tue, 24 Jun 2003 15:24:18 -0700 Message-ID: <3EF8CF92.1070205@redhat.com> Date: Tue, 24 Jun 2003 23:04: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: Andrew Cagney CC: gdb-patches@sources.redhat.com Subject: Re: [preliminary patch] sim/h8300/compile.c: abort when abort is called. References: <20030624.035043.10249396.kazu@cs.umass.edu> <3EF87254.1060900@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-06/txt/msg00763.txt.bz2 Andrew, Re: sim and abort/SIGABRT, I discovered something interesting when I fixed the h8 simulator so that it would return SIGABRT to gdb. Thanks to these lines in remote-sim.c, case sim_stopped: switch (sigrc) { case SIGABRT: quit (); break; case SIGINT: case SIGTRAP: default: status->kind = TARGET_WAITKIND_STOPPED; instead of saying "program stopped with signal SIGABRT", gdb says "Quit." and detaches from the target. Have you any idea why it's doing that? Michael