From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31446 invoked by alias); 14 Oct 2009 21:01:20 -0000 Received: (qmail 31137 invoked by uid 22791); 14 Oct 2009 21:01:20 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 14 Oct 2009 21:01:15 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 8BA7110EAC; Wed, 14 Oct 2009 21:03:12 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id 634AA1072B; Wed, 14 Oct 2009 21:03:12 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1MyAy8-0003wL-PJ; Wed, 14 Oct 2009 17:01:12 -0400 Date: Wed, 14 Oct 2009 21:01:00 -0000 From: Daniel Jacobowitz To: Julian Smith Cc: gdb@sources.redhat.com Subject: Re: gdb displaying incorrect signal names with remote target ? Message-ID: <20091014210112.GA14786@caradoc.them.org> Mail-Followup-To: Julian Smith , gdb@sources.redhat.com References: <20091014214827.7259ea9e.jsmith@undo-software.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091014214827.7259ea9e.jsmith@undo-software.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-10/txt/msg00260.txt.bz2 On Wed, Oct 14, 2009 at 09:48:27PM +0100, Julian Smith wrote: > The inferior is receiving SIGUSR1 (signal number 10 on my i386 Linux > system), thus the remote target sends a packet `S0a' to gdb. That's your mistake right there :-) >From the manual: The `C', `c', `S', `s', `vCont', `vAttach', `vRun', `vStopped', and `?' packets can receive any of the below as a reply. Except for `?' and `vStopped', that reply is only returned when the target halts. In the below the exact meaning of "signal number" is defined by the header `include/gdb/signals.h' in the GDB source code. -- Daniel Jacobowitz CodeSourcery