Add '#define HAVE_PROCFS', move '#include "fopen-same.h" to end of file
[deliverable/binutils-gdb.git] / gdb / am29k-tdep.c
index e58847b3e791aadd21be156b2c1c3a4c8dcf2a55..d4720b7df42ed17fb5539a9b424255a5e56740d8 100644 (file)
@@ -1,13 +1,13 @@
 /* Target-machine dependent code for the AMD 29000
-   Copyright (C) 1990 Free Software Foundation, Inc.
+   Copyright 1990, 1991 Free Software Foundation, Inc.
    Contributed by Cygnus Support.  Written by Jim Kingdon.
 
 This file is part of GDB.
 
 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
-the Free Software Foundation; either version 1, or (at your option)
-any later version.
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -15,18 +15,19 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
-along with this program; see the file COPYING.  If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include "defs.h"
 #include "gdbcore.h"
 #include <stdio.h>
 #include "frame.h"
 #include "value.h"
-#include "param.h"
 #include "symtab.h"
 #include "inferior.h"
 
+extern CORE_ADDR text_start;   /* FIXME, kludge... */
+
 /* Structure to hold cached info about function prologues.  */
 struct prologue_info
 {
@@ -383,10 +384,11 @@ init_extra_frame_info (fci)
     /* Assume innermost frame.  May produce strange results for "info frame"
        but there isn't any way to tell the difference.  */
     init_frame_info (1, fci);
-  else
-    /* We're in get_prev_frame_info.
-       Take care of everything in init_frame_pc.  */
-    ;
+  else {
+      /* We're in get_prev_frame_info.
+         Take care of everything in init_frame_pc.  */
+      ;
+    }
 }
 
 void
@@ -455,7 +457,7 @@ read_register_stack (memaddr, myaddr, actual_mem_addr, lval)
       if (lval != NULL)
        *lval = lval_memory;
       if (actual_mem_addr != NULL)
-       *actual_mem_addr == memaddr;
+       *actual_mem_addr = memaddr;
     }
 }
 
@@ -500,7 +502,7 @@ write_register_stack (memaddr, myaddr, actual_mem_addr)
       if (myaddr != NULL)
        write_memory (memaddr, myaddr, 4);
       if (actual_mem_addr != NULL)
-       *actual_mem_addr == memaddr;
+       *actual_mem_addr = memaddr;
     }
 }
 \f
@@ -605,9 +607,9 @@ pop_frame ()
        write_register
          (SR_REGNUM (i + 128),
           read_register (LR0_REGNUM + DUMMY_ARG / 4 + i));
-      for (i = 0; i < DUMMY_SAVE_GR96; ++i)
+      for (i = 0; i < DUMMY_SAVE_GREGS; ++i)
        write_register
-         (GR96_REGNUM + i,
+         (RETURN_REGNUM + i,
           read_register (LR0_REGNUM + DUMMY_ARG / 4 + DUMMY_SAVE_SR128 + i));
     }
 
@@ -689,7 +691,7 @@ push_dummy_frame ()
   for (i = 0; i < DUMMY_SAVE_SR128; ++i)
     write_register (LR0_REGNUM + DUMMY_ARG / 4 + i,
                    read_register (SR_REGNUM (i + 128)));
-  for (i = 0; i < DUMMY_SAVE_GR96; ++i)
+  for (i = 0; i < DUMMY_SAVE_GREGS; ++i)
     write_register (LR0_REGNUM + DUMMY_ARG / 4 + DUMMY_SAVE_SR128 + i,
-                   read_register (GR96_REGNUM + i));
+                   read_register (RETURN_REGNUM + i));
 }
This page took 0.024767 seconds and 4 git commands to generate.