This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[commit/alpha] remove last traces of generic regnum ids
- From: Richard Henderson <rth at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 2 Jun 2003 14:53:28 -0700
- Subject: [commit/alpha] remove last traces of generic regnum ids
No need for function calls and all that sort of indirection here.
r~
* alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
regnum identifiers.
(alpha_sigtramp_register_address): Likewise.
Index: alpha-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/alpha-tdep.c,v
retrieving revision 1.105
diff -c -p -d -r1.105 alpha-tdep.c
*** alpha-tdep.c 2 Jun 2003 20:57:15 -0000 1.105
--- alpha-tdep.c 2 Jun 2003 21:50:46 -0000
*************** alpha_register_virtual_type (int regno)
*** 96,102 ****
/* Don't need to worry about little vs big endian until
some jerk tries to port to alpha-unicosmk. */
! if (regno >= FP0_REGNUM && regno < FP0_REGNUM + 31)
return builtin_type_ieee_double_little;
return builtin_type_int64;
--- 90,96 ----
/* Don't need to worry about little vs big endian until
some jerk tries to port to alpha-unicosmk. */
! if (regno >= ALPHA_FP0_REGNUM && regno < ALPHA_FP0_REGNUM + 31)
return builtin_type_ieee_double_little;
return builtin_type_int64;
*************** alpha_sigtramp_register_address (CORE_AD
*** 747,755 ****
{
if (regno < 32)
return sigcontext_addr + SIGFRAME_REGSAVE_OFF + regno * 8;
! if (regno >= FP0_REGNUM && regno < FP0_REGNUM + 32)
return sigcontext_addr + SIGFRAME_FPREGSAVE_OFF + regno * 8;
! if (regno == PC_REGNUM)
return sigcontext_addr + SIGFRAME_PC_OFF;
return 0;
--- 759,767 ----
{
if (regno < 32)
return sigcontext_addr + SIGFRAME_REGSAVE_OFF + regno * 8;
! if (regno >= ALPHA_FP0_REGNUM && regno < ALPHA_FP0_REGNUM + 32)
return sigcontext_addr + SIGFRAME_FPREGSAVE_OFF + regno * 8;
! if (regno == ALPHA_PC_REGNUM)
return sigcontext_addr + SIGFRAME_PC_OFF;
return 0;