Fix problems introduced with my last change.
[deliverable/binutils-gdb.git] / gdb / findvar.c
index dd869049efd5b0481eb12164f23a1a32ef417cb1..8f1960890fd8a0c12e04a1b0b7ffae456419ca5b 100644 (file)
@@ -42,9 +42,12 @@ const struct floatformat floatformat_unknown;
 #define CANNOT_STORE_REGISTER(regno) 0
 #endif
 
-static void write_register_gen PARAMS ((int, char *));
+void write_register_gen PARAMS ((int, char *));
 
-static int read_relative_register_raw_bytes_for_frame PARAMS ((int regnum, char *myaddr, struct frame_info * frame));
+static int 
+read_relative_register_raw_bytes_for_frame PARAMS ((int regnum, 
+                                                   char *myaddr, 
+                                                   struct frame_info *frame));
 
 /* Basic byte-swapping routines.  GDB has needed these for a long time...
    All extract a target-format integer at ADDR which is LEN bytes long.  */
@@ -192,10 +195,6 @@ extract_address (void *addr, int len)
 }
 
 
-#ifndef POINTER_TO_ADDRESS
-#define POINTER_TO_ADDRESS generic_pointer_to_address
-#endif
-
 /* Treat the bytes at BUF as a pointer of type TYPE, and return the
    address it represents.  */
 CORE_ADDR
@@ -282,10 +281,6 @@ store_address (void *addr, int len, LONGEST val)
 }
 
 
-#ifndef ADDRESS_TO_POINTER
-#define ADDRESS_TO_POINTER generic_address_to_pointer
-#endif
-
 /* Store the address ADDR as a pointer of type TYPE at BUF, in target
    form.  */
 void
@@ -785,7 +780,7 @@ read_register_gen (regno, myaddr)
 /* Write register REGNO at MYADDR to the target.  MYADDR points at
    REGISTER_RAW_BYTES(REGNO), which must be in target byte-order.  */
 
-static void
+void
 write_register_gen (regno, myaddr)
      int regno;
      char *myaddr;
@@ -1087,14 +1082,10 @@ generic_target_write_pc (pc, pid)
 #ifdef PC_REGNUM
   if (PC_REGNUM >= 0)
     write_register_pid (PC_REGNUM, pc, pid);
-#ifdef NPC_REGNUM
   if (NPC_REGNUM >= 0)
     write_register_pid (NPC_REGNUM, pc + 4, pid);
-#ifdef NNPC_REGNUM
   if (NNPC_REGNUM >= 0)
     write_register_pid (NNPC_REGNUM, pc + 8, pid);
-#endif
-#endif
 #else
   internal_error ("generic_target_write_pc");
 #endif
This page took 0.024182 seconds and 4 git commands to generate.