Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Aleksandar Ristovski <ARistovski@qnx.com>
Cc: gdb-patches@sourceware.org, Ryan Mansfield <RMansfield@qnx.com>
Subject: Re: PR 2343 fix: signal number mismatch
Date: Tue, 29 Jan 2008 17:02:00 -0000	[thread overview]
Message-ID: <20080129170015.GC1637@caradoc.them.org> (raw)
In-Reply-To: <3518719F06577C4F85DA618E3C37AB910DA17A41@nimbus.ott.qnx.com>

On Thu, Dec 13, 2007 at 11:11:58AM -0500, Aleksandar Ristovski wrote:
> Hello,
> 
> This patch fixes PR 2343: when host and target system OS differ, there can
> be mismatch between signal numeric values. This patch introduces new gdbarch
> function to allow different targets define their own mapping to enum
> target_signal.
> 
> ChangeLog:
> 
> 2007-12-13  Aleksandar Ristovski <aristovski@qnx.com>
> 
> 	* gdbarch.h: (gdbarch_target_signal_from_target_p): New function.
> 	(gdbarch_target_signal_from_target_ftype): New typedef.
> 	(gdbarch_target_signal_from_target): New function.
> 	(set_gdbarch_target_signal_from_target): New function.
> 	* gdbarch.c: (struct gdbarch): New field -
> target_signal_from_target.
> 	(struct gdbarch startup_gdbarch): Initialization for the new field.
> 	(verify_gdbarch): Added comment, 'Skip verify...'.
> 	(gdbarch_dump): Printing debug info for the new field.
> 	(gdbarch_target_signal_from_target_p): New function definition.
> 	(gdbarch_target_signal_from_target_ftype): New typedef definition.
> 	(gdbarch_target_signal_from_target): New function definition.
> 	(set_gdbarch_target_signal_from_target): New function definition.
> 	* corelow.c: (core_open): Added logic for calling new function if
> specified.

gdbarch.h and gdbarch.c are generated files (see the big comment at
the top of them).  You need to add the new function to the list in
gdbarch.sh instead.

The old comment:

     /* NOTE: target_signal_from_host() converts a target signal value
        into gdb's internal signal value.  Unfortunately gdb's internal
        value is called ``target_signal'' and this function got the
        name ..._from_host(). */

should go above the call to target_signal_from_host in one branch of
the if statement, I think.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2008-01-29 17:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-13 17:05 Aleksandar Ristovski
2008-01-29 17:02 ` Daniel Jacobowitz [this message]
2007-12-16 22:19 Aleksandar Ristovski
2007-12-16 22:25 ` Daniel Jacobowitz
2008-04-21 15:30 Aleksandar Ristovski
2008-04-22 15:56 Aleksandar Ristovski
2008-05-01 19:07 ` Daniel Jacobowitz
2008-05-01 19:39   ` Aleksandar Ristovski

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=20080129170015.GC1637@caradoc.them.org \
    --to=drow@false.org \
    --cc=ARistovski@qnx.com \
    --cc=RMansfield@qnx.com \
    --cc=gdb-patches@sourceware.org \
    /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