From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 120828 invoked by alias); 6 Nov 2015 14:46:50 -0000 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 Received: (qmail 120818 invoked by uid 89); 6 Nov 2015 14:46:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wm0-f51.google.com Received: from mail-wm0-f51.google.com (HELO mail-wm0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 06 Nov 2015 14:46:48 +0000 Received: by wmnn186 with SMTP id n186so43867462wmn.1 for ; Fri, 06 Nov 2015 06:46:45 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.28.19.7 with SMTP id 7mr11229446wmt.89.1446821205533; Fri, 06 Nov 2015 06:46:45 -0800 (PST) Received: by 10.28.59.65 with HTTP; Fri, 6 Nov 2015 06:46:45 -0800 (PST) Date: Fri, 06 Nov 2015 14:46:00 -0000 Message-ID: Subject: Signal numbers? From: Juha Aaltonen To: gdb-mailing list Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-11/txt/msg00006.txt.bz2 I was wondering... How can I find out which signal numbers GDB uses for which signals? I got my bare metal "kind of gdb server/stub" working, but I wish I could give some reasonable signal numbers in the stop-messages. It's not nice if stop due to a breakpoint is reported to user as "SIGPIPE" by the gdb. ;-) I thought I sent SIGUSR2 (signal 12) when the debuggee stopped at breakpoint in the program code (not one of debugger's) and GDB notified: "Program received signal SIGTSTP, Stopped (user)." Also signal 7 seems to come out as SIGEMT instead of SIGBUS (prefetch/data aborts).