Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Elena Zannoni <ezannoni@cygnus.com>
To: gdb-patches@sources.redhat.com
Cc: vmakarov@redhat.com
Subject: [RFA] config/rs6000/tm-rs6000.h STAB_REG_TO_REGNUM
Date: Fri, 30 Nov 2001 09:35:00 -0000	[thread overview]
Message-ID: <15367.50385.770078.559327@krustylu.cygnus.com> (raw)

This patch is from Vlad Makarov.  I have tested it on aix 4.3 and it
reduces the number of failures by about 20.

It seems like the register numbering in gcc and gdb didn't agree.

Thanks Vlad!

Elena

2001-11-22  Vladimir Makarov  <vmakarov@redhat.com>
 
      * config/rs6000/tm-rs6000.h (STAB_REG_TO_REGNUM): Redefine it.
 

Index: config/rs6000/tm-rs6000.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/config/rs6000/tm-rs6000.h,v
retrieving revision 1.60
diff -c -p -r1.60 tm-rs6000.h
*** tm-rs6000.h 2001/05/01 19:36:54     1.60
--- tm-rs6000.h 2001/11/23 23:16:35
*************** extern void aix_process_linenos (void);
*** 88,94 ****
  
  /* convert a dbx stab register number (from `r' declaration) to a gdb
REGNUM */
  
! #define STAB_REG_TO_REGNUM(value)     (value)
  
  /* Define other aspects of the stack frame.  */
  
--- 88,101 ----
  
  /* convert a dbx stab register number (from `r' declaration) to a gdb REGNUM */
  
! #define STAB_REG_TO_REGNUM(num)  \
!  ((num) == 64                                                 \
!   ? ((TARGET_ARCHITECTURE)->mach == bfd_mach_ppc_601          \
!       ? 124 : 70)   /* mq  */                                 \
!   : (num) == 65 ? 67 /* lr  */				\
!   : (num) == 66 ? 68 /* ctr */				\
!   : (num) == 76 ? 69 /* xer */				\
!   : (num))
  
  /* Define other aspects of the stack frame.  */


WARNING: multiple messages have this Message-ID
From: Elena Zannoni <ezannoni@cygnus.com>
To: gdb-patches@sources.redhat.com
Cc: vmakarov@redhat.com
Subject: [RFA] config/rs6000/tm-rs6000.h STAB_REG_TO_REGNUM
Date: Thu, 22 Nov 2001 01:18:00 -0000	[thread overview]
Message-ID: <15367.50385.770078.559327@krustylu.cygnus.com> (raw)
Message-ID: <20011122011800.fpocnnx1lgxFcqQ9FvXIZlnZdDZ8tYn2bGe99wb173U@z> (raw)


This patch is from Vlad Makarov.  I have tested it on aix 4.3 and it
reduces the number of failures by about 20.

It seems like the register numbering in gcc and gdb didn't agree.

Thanks Vlad!

Elena

2001-11-22  Vladimir Makarov  <vmakarov@redhat.com>
 
      * config/rs6000/tm-rs6000.h (STAB_REG_TO_REGNUM): Redefine it.
 

Index: config/rs6000/tm-rs6000.h
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/config/rs6000/tm-rs6000.h,v
retrieving revision 1.60
diff -c -p -r1.60 tm-rs6000.h
*** tm-rs6000.h 2001/05/01 19:36:54     1.60
--- tm-rs6000.h 2001/11/23 23:16:35
*************** extern void aix_process_linenos (void);
*** 88,94 ****
  
  /* convert a dbx stab register number (from `r' declaration) to a gdb
REGNUM */
  
! #define STAB_REG_TO_REGNUM(value)     (value)
  
  /* Define other aspects of the stack frame.  */
  
--- 88,101 ----
  
  /* convert a dbx stab register number (from `r' declaration) to a gdb REGNUM */
  
! #define STAB_REG_TO_REGNUM(num)  \
!  ((num) == 64                                                 \
!   ? ((TARGET_ARCHITECTURE)->mach == bfd_mach_ppc_601          \
!       ? 124 : 70)   /* mq  */                                 \
!   : (num) == 65 ? 67 /* lr  */				\
!   : (num) == 66 ? 68 /* ctr */				\
!   : (num) == 76 ? 69 /* xer */				\
!   : (num))
  
  /* Define other aspects of the stack frame.  */


             reply	other threads:[~2001-11-30  9:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-30  9:35 Elena Zannoni [this message]
2001-11-22  1:18 ` Elena Zannoni
2001-11-22  4:32 ` Andrew Cagney
2001-11-30 10:16   ` Andrew Cagney
2001-11-30 13:08   ` Elena Zannoni
2001-11-24  6:47     ` Elena Zannoni
2001-11-30 13:36     ` Daniel Jacobowitz
2001-11-24 11:03       ` Daniel Jacobowitz
2001-12-05 13:58     ` Kevin Buettner
2001-12-05 14:25       ` Elena Zannoni
2001-12-05 14:30         ` Daniel Jacobowitz
2001-12-05 14:34           ` Elena Zannoni
2001-12-05 14:53         ` Kevin Buettner
2001-12-05 14:57           ` Elena Zannoni
2001-11-30  9:53 ` Daniel Jacobowitz
2001-11-22  3:39   ` Daniel Jacobowitz

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=15367.50385.770078.559327@krustylu.cygnus.com \
    --to=ezannoni@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=vmakarov@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