*** empty log message ***
[binutils-gdb.git] / gdb / v850-tdep.c
index 515013ce08ab17aa62cd2ce20ad830a69c573258..534e956506628b0d18944602e79dacc09ec77cd4 100644 (file)
@@ -1,5 +1,5 @@
 /* Target-dependent code for the NEC V850 for GDB, the GNU debugger.
-   Copyright 1996, 2000 Free Software Foundation, Inc.
+   Copyright 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -29,6 +29,7 @@
 #include "gdbcore.h"
 #include "symfile.h"
 #include "arch-utils.h"
+#include "regcache.h"
 
 
 static char *v850_generic_reg_names[] = REGISTER_NAMES;
@@ -114,7 +115,6 @@ struct reg_list
 static void
 handle_prepare (int insn, int insn2, CORE_ADDR * current_pc_ptr,
                struct prologue_info *pi, struct pifsr **pifsr_ptr)
-
 {
   CORE_ADDR current_pc = *current_pc_ptr;
   struct pifsr *pifsr = *pifsr_ptr;
@@ -191,7 +191,6 @@ handle_prepare (int insn, int insn2, CORE_ADDR * current_pc_ptr,
 static void
 handle_pushm (int insn, int insn2, struct prologue_info *pi,
              struct pifsr **pifsr_ptr)
-
 {
   struct pifsr *pifsr = *pifsr_ptr;
   long list12 = ((insn & 0x0f) << 16) + (insn2 & 0xfff0);
@@ -357,11 +356,12 @@ v850_scan_prologue (CORE_ADDR pc, struct prologue_info *pi)
 
   for (current_pc = func_addr; current_pc < prologue_end;)
     {
-      int insn, insn2;
+      int insn;
+      int insn2 = -1; /* dummy value */
 
 #ifdef DEBUG
       printf_filtered ("0x%.8lx ", (long) current_pc);
-      (*tm_print_insn) (current_pc, &tm_print_insn_info);
+      TARGET_PRINT_INSN (current_pc, &tm_print_insn_info);
 #endif
 
       insn = read_memory_unsigned_integer (current_pc, 2);
@@ -705,7 +705,7 @@ v850_pop_frame (struct frame_info *frame)
  */
 
 CORE_ADDR
-v850_push_arguments (int nargs, value_ptr *args, CORE_ADDR sp,
+v850_push_arguments (int nargs, struct value **args, CORE_ADDR sp,
                     unsigned char struct_return, CORE_ADDR struct_addr)
 {
   int argreg;
@@ -817,7 +817,7 @@ v850_frame_saved_pc (struct frame_info *fi)
 
 int
 v850_fix_call_dummy (char *dummy, CORE_ADDR sp, CORE_ADDR fun, int nargs,
-                    value_ptr *args, struct type *type, int gcc_p)
+                    struct value **args, struct type *type, int gcc_p)
 {
   long offset24;
 
@@ -850,7 +850,8 @@ v850_target_architecture_hook (const bfd_arch_info_type *ap)
        }
     }
 
-  internal_error ("Architecture `%s' unrecognized", ap->printable_name);
+  internal_error (__FILE__, __LINE__,
+                 "Architecture `%s' unrecognized", ap->printable_name);
 }
 
 void