2003-07-28 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / hppab-nat.c
index 51dde60508e15be73721c4f2fcbbb6fd6b436ae0..dc3e6b6fb9c390d9a05b274534065001c427873f 100644 (file)
@@ -55,7 +55,7 @@ static void
 fetch_register (int regno)
 {
   register unsigned int regaddr;
-  char buf[MAX_REGISTER_RAW_SIZE];
+  char buf[MAX_REGISTER_SIZE];
   register int i;
 
   /* Offset of registers within the u area.  */
@@ -118,7 +118,7 @@ store_inferior_registers (int regno)
       errno = 0;
       if (regno == PCOQ_HEAD_REGNUM || regno == PCOQ_TAIL_REGNUM)
        {
-         scratch = *(int *) &registers[REGISTER_BYTE (regno)] | 0x3;
+         scratch = *(int *) &deprecated_registers[REGISTER_BYTE (regno)] | 0x3;
          ptrace (PT_WUREGS, PIDGET (inferior_ptid), (PTRACE_ARG3_TYPE) regaddr,
                  scratch);
          if (errno != 0)
@@ -135,7 +135,7 @@ store_inferior_registers (int regno)
            errno = 0;
            ptrace (PT_WUREGS, PIDGET (inferior_ptid),
                    (PTRACE_ARG3_TYPE) regaddr,
-                   *(int *) &registers[REGISTER_BYTE (regno) + i]);
+                   *(int *) &deprecated_registers[REGISTER_BYTE (regno) + i]);
            if (errno != 0)
              {
                /* Warning, not error, in case we are attached; sometimes the
This page took 0.024044 seconds and 4 git commands to generate.