Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] config/rs6000/tm-rs6000.h STAB_REG_TO_REGNUM
@ 2001-11-30  9:35 Elena Zannoni
  2001-11-22  1:18 ` Elena Zannoni
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Elena Zannoni @ 2001-11-30  9:35 UTC (permalink / raw)
  To: gdb-patches; +Cc: vmakarov

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.  */


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2001-12-05 22:57 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-30  9:35 [RFA] config/rs6000/tm-rs6000.h STAB_REG_TO_REGNUM Elena Zannoni
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox