From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23480 invoked by alias); 2 Sep 2004 15:23:47 -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 23446 invoked from network); 2 Sep 2004 15:23:45 -0000 Received: from unknown (HELO smtp.hispeed.ch) (62.2.95.247) by sourceware.org with SMTP; 2 Sep 2004 15:23:45 -0000 Received: from indel.ch (217-162-27-127.dclient.hispeed.ch [217.162.27.127]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with SMTP id i82FNi6i025682 for ; Thu, 2 Sep 2004 17:23:44 +0200 Received: from fabi.indel.ch [192.168.1.19] by indel.ch [127.0.0.1] with SMTP (MDaemon.v2.7.SP5.R) for ; Thu, 02 Sep 2004 17:21:33 +0200 Message-Id: <5.2.0.9.1.20040902164649.01d53180@NT_SERVER> X-Sender: cenedese@NT_SERVER (Unverified) Date: Thu, 02 Sep 2004 15:23:00 -0000 To: gdb@sources.redhat.com From: Fabian Cenedese Subject: Signal values Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-MDaemon-Deliver-To: gdb@sources.redhat.com X-Return-Path: cenedese@indel.ch X-SW-Source: 2004-09/txt/msg00017.txt.bz2 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): #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 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, TARGET_SIGNAL_FIRST = 0, TARGET_SIGNAL_HUP = 1, TARGET_SIGNAL_INT = 2, TARGET_SIGNAL_QUIT = 3, TARGET_SIGNAL_ILL = 4, TARGET_SIGNAL_TRAP = 5, TARGET_SIGNAL_ABRT = 6, TARGET_SIGNAL_EMT = 7, TARGET_SIGNAL_FPE = 8, TARGET_SIGNAL_KILL = 9, TARGET_SIGNAL_BUS = 10, TARGET_SIGNAL_SEGV = 11, TARGET_SIGNAL_SYS = 12, TARGET_SIGNAL_PIPE = 13, TARGET_SIGNAL_ALRM = 14, TARGET_SIGNAL_TERM = 15, Is this the definitve list? If so why are there other lists? I know that different processors have different signals, but I already configured gdb for powerpc so it should know which numbers are valid. Or does gdb assume to have a Linux system? Should I just include signal.h from Linux? And as aside question: which one is the signal that says the target has reached a breakpoint? Thanks bye Fabi