* rs6000-tdep.c (altivec_register_p): Restore function inadvertently

deleted in 2002-08-20 commit.  This function is still used by
	ppc-linux-nat.c.
This commit is contained in:
Kevin Buettner 2002-08-26 23:20:53 +00:00
parent 68a4c07345
commit 64b841757f
2 changed files with 17 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2002-08-26 Kevin Buettner <kevinb@redhat.com>
* rs6000-tdep.c (altivec_register_p): Restore function inadvertently
deleted in 2002-08-20 commit. This function is still used by
ppc-linux-nat.c.
2002-08-26 Keith Seitz <keiths@redhat.com>
* gdb-events.sh: Add selected-frame-level-changed event.

View file

@ -123,6 +123,17 @@ static void frame_get_saved_regs (struct frame_info * fi,
struct rs6000_framedata * fdatap);
static CORE_ADDR frame_initial_stack_address (struct frame_info *);
/* Is REGNO an AltiVec register? Return 1 if so, 0 otherwise. */
int
altivec_register_p (int regno)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
if (tdep->ppc_vr0_regnum < 0 || tdep->ppc_vrsave_regnum < 0)
return 0;
else
return (regno >= tdep->ppc_vr0_regnum && regno <= tdep->ppc_vrsave_regnum);
}
/* Read a LEN-byte address from debugged memory address MEMADDR. */
static CORE_ADDR