From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30682 invoked by alias); 21 May 2012 21:53:27 -0000 Received: (qmail 30672 invoked by uid 22791); 21 May 2012 21:53:27 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from shell4.bayarea.net (HELO shell4.bayarea.net) (209.128.82.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 May 2012 21:53:14 +0000 Received: (qmail 18375 invoked from network); 21 May 2012 14:53:13 -0700 Received: from c-76-102-3-160.hsd1.ca.comcast.net (HELO redwood.eagercon.com) (76.102.3.160) by shell4.bayarea.net with SMTP; 21 May 2012 14:53:13 -0700 Message-ID: <4FBAB948.7000808@eagerm.com> Date: Mon, 21 May 2012 21:53:00 -0000 From: Michael Eager User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Pedro Alves CC: "gdb-patches@sourceware.org" Subject: Re: MIPS Linux signals References: <4FB850CA.7090701@eagerm.com> <4FBAB500.7010104@redhat.com> In-Reply-To: <4FBAB500.7010104@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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-05/txt/msg00795.txt.bz2 On 05/21/2012 02:34 PM, Pedro Alves wrote: > On 05/20/2012 03:02 AM, Michael Eager wrote: > >> +static int >> +mips_target_signal_to_host (struct gdbarch *gdbarch, enum target_signal signo) >> +{ >> + printf ("MJE: mips_target_signal_to_host (, signo=%d)\n", signo); >> + >> + switch (signo) { >> + case TARGET_SIGNAL_0: return 0; >> + case TARGET_SIGNAL_HUP: return MIPS_SIGHUP; > > > BTW, I wouldn't bother with gdbarch_target_signal_to_host. Nothing ever calls it. I hadn't noticed that. I thought that it was called to translate the signal number when sent to the target. Instead, target_signal_to_host() is called. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077