From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3677 invoked by alias); 2 Sep 2004 15:42:02 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 3661 invoked from network); 2 Sep 2004 15:42:01 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 2 Sep 2004 15:42:01 -0000 Received: from drow by nevyn.them.org with local (Exim 4.34 #1 (Debian)) id 1C2tiq-00034s-AC; Thu, 02 Sep 2004 11:42:00 -0400 Date: Thu, 02 Sep 2004 15:42:00 -0000 From: Daniel Jacobowitz To: Fabian Cenedese Cc: gdb@sources.redhat.com Subject: Re: Signal values Message-ID: <20040902154159.GA11626@nevyn.them.org> Mail-Followup-To: Fabian Cenedese , gdb@sources.redhat.com References: <5.2.0.9.1.20040902164649.01d53180@NT_SERVER> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.2.0.9.1.20040902164649.01d53180@NT_SERVER> User-Agent: Mutt/1.5.5.1+cvs20040105i X-SW-Source: 2004-09/txt/msg00018.txt.bz2 On Thu, Sep 02, 2004 at 05:22:22PM +0200, Fabian Cenedese wrote: > Hi > > Is there a uniform declaration of the signals? It seems that gdb is not using > the same as Linux. > > Linux\include\asm-ppc\signal.h (included from ppc-stub.c from the kgdb > project which I used as base for my stub): Recent versions of the kgdb stub should translate the signal numbers correctly, I remember helping them fix this. > > #define SIGHUP 1 > #define SIGINT 2 > #define SIGQUIT 3 > #define SIGILL 4 > #define SIGTRAP 5 > #define SIGABRT 6 > #define SIGIOT 6 > #define SIGBUS 7 > #define SIGFPE 8 > #define SIGKILL 9 > #define SIGUSR1 10 > #define SIGSEGV 11 > #define SIGUSR2 12 > #define SIGPIPE 13 > #define SIGALRM 14 > #define SIGTERM 15 These are Linux/PowerPC signal numbers. > But when I send a 10 gdb tells me it's a SIGBUS which would go along this > list from binutils/include/gdb/signals.h: > > enum target_signal > { > TARGET_SIGNAL_0 = 0, These are remote protocol signal numbers. They are target independent. > And as aside question: which one is the signal that says the target has > reached a breakpoint? SIGTRAP. -- Daniel Jacobowitz