Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Richard Earnshaw <rearnsha@arm.com>
To: gdb-patches@sources.redhat.com
Cc: Richard.Earnshaw@arm.com
Subject: Patch for building gdb on arm-netbsd
Date: Wed, 09 Jan 2002 05:34:00 -0000	[thread overview]
Message-ID: <200201091334.NAA22174@cam-mail2.cambridge.arm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 557 bytes --]

Following the rules for converting to multi-arch, step one says we must 
get it all to compile...  So:

The following patch is needed to enable building of gdb on arm-netbsd.  
The definition of IN_SIGTRAMP tests NAME for being NULL and if not calls 
STREQ to compare the strings.  However, STREQ dereferences the pointers 
directly and this causes a compile time error for the NULL pointer (since 
*(0) is not defined).

<date>  Richard Earnshaw (rearnsha@arm.com)

	* arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument of
	IN_SIGTRAMP to char *.


[-- Attachment #2: sigtramp.patch --]
[-- Type: text/x-patch , Size: 879 bytes --]

Index: arm-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/arm-tdep.c,v
retrieving revision 1.25
diff -p -r1.25 arm-tdep.c
*** arm-tdep.c	2002/01/05 04:30:15	1.25
--- arm-tdep.c	2002/01/09 13:24:50
*************** arm_init_extra_frame_info (int fromleaf,
*** 1060,1066 ****
       to IN_SIGTRAMP.  */
  
    if (SIGCONTEXT_REGISTER_ADDRESS_P () 
!       && (fi->signal_handler_caller || IN_SIGTRAMP (fi->pc, 0)))
      {
        for (reg = 0; reg < NUM_REGS; reg++)
  	fi->fsr.regs[reg] = SIGCONTEXT_REGISTER_ADDRESS (sp, fi->pc, reg);
--- 1060,1066 ----
       to IN_SIGTRAMP.  */
  
    if (SIGCONTEXT_REGISTER_ADDRESS_P () 
!       && (fi->signal_handler_caller || IN_SIGTRAMP (fi->pc, (char *)0)))
      {
        for (reg = 0; reg < NUM_REGS; reg++)
  	fi->fsr.regs[reg] = SIGCONTEXT_REGISTER_ADDRESS (sp, fi->pc, reg);

             reply	other threads:[~2002-01-09 13:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-09  5:34 Richard Earnshaw [this message]
2002-01-09  6:15 ` Eli Zaretskii
2002-01-09  6:25   ` Richard Earnshaw
2002-01-09  9:21   ` Andrew Cagney
2002-01-09  9:29     ` Richard Earnshaw
2002-01-09  9:54       ` Andrew Cagney
2002-01-09 10:45     ` Elena Zannoni
2002-01-13  8:28       ` Andrew Cagney

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=200201091334.NAA22174@cam-mail2.cambridge.arm.com \
    --to=rearnsha@arm.com \
    --cc=Richard.Earnshaw@arm.com \
    --cc=gdb-patches@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