Create new file regcache.h. Update all uses.
[deliverable/binutils-gdb.git] / gdb / mcore-tdep.c
index 1fc6e906a1660e3606055a7fbbe8ea85494c35cb..d7678e3d6634a0a31e8999becfac4a3347135f58 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-machine dependent code for Motorola MCore for GDB, the GNU debugger
-   Copyright (C) 1999 Free Software Foundation, Inc.
+   Copyright 1999, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -22,6 +22,7 @@
 #include "symtab.h"
 #include "value.h"
 #include "gdbcmd.h"
+#include "regcache.h"
 
 /* Functions declared and used only in this file */
 
@@ -118,7 +119,7 @@ struct frame_extra_info
 /* The base of the current frame is in a frame pointer register.
    This register is noted in frame_extra_info->fp_regnum.
 
-   Note that the existance of an FP might also indicate that the
+   Note that the existence of an FP might also indicate that the
    function has called alloca. */
 #define MY_FRAME_IN_FP 0x2
 
@@ -217,7 +218,7 @@ analyze_dummy_frame (CORE_ADDR pc, CORE_ADDR frame)
   return dummy;
 }
 
-/* Function prologues on the Motorol MCore processors consist of:
+/* Function prologues on the Motorola MCore processors consist of:
 
    - adjustments to the stack pointer (r1 used as scratch register)
    - store word/multiples that use r0 as the base address
@@ -336,7 +337,7 @@ mcore_analyze_prologue (struct frame_info *fi, CORE_ADDR pc, int skip_prologue)
       if (IS_SUBI0 (insn))
        {
          int offset = 1 + ((insn >> 4) & 0x1f);
-         mcore_insn_debug (("MCORE: got subi r0,%d; contnuing\n", offset));
+         mcore_insn_debug (("MCORE: got subi r0,%d; continuing\n", offset));
          framesize += offset;
          continue;
        }
@@ -615,7 +616,7 @@ mcore_skip_prologue (CORE_ADDR pc)
   struct symtab_and_line sal;
 
   /* If we have line debugging information, then the end of the
-     prologue should the first assembly instruction of  the first
+     prologue should be the first assembly instruction of the first
      source line */
   if (find_pc_partial_function (pc, NULL, &func_addr, &func_end))
     {
@@ -978,7 +979,7 @@ get_insn (CORE_ADDR pc)
 }
 
 void
-_initialize_mcore_tdep ()
+_initialize_mcore_tdep (void)
 {
   extern int print_insn_mcore (bfd_vma, disassemble_info *);
   tm_print_insn = print_insn_mcore;
This page took 0.025723 seconds and 4 git commands to generate.