From: Daniel Jacobowitz <drow@false.org>
To: Fabian Cenedese <Cenedese@indel.ch>
Cc: gdb@sources.redhat.com
Subject: Re: Signal values
Date: Thu, 02 Sep 2004 15:42:00 -0000 [thread overview]
Message-ID: <20040902154159.GA11626@nevyn.them.org> (raw)
In-Reply-To: <5.2.0.9.1.20040902164649.01d53180@NT_SERVER>
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
next prev parent reply other threads:[~2004-09-02 15:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-09-02 15:23 Fabian Cenedese
2004-09-02 15:42 ` Daniel Jacobowitz [this message]
2004-09-03 14:04 ` Fabian Cenedese
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040902154159.GA11626@nevyn.them.org \
--to=drow@false.org \
--cc=Cenedese@indel.ch \
--cc=gdb@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox