* inftarg.c (child_thread_alive): New function to see if a
[deliverable/binutils-gdb.git] / gdb / sh-tdep.c
index 3f39253b5f8bb6ee2c9291db31073e8bf8a57ab4..e09a6dd1423ed916289bef2fd2ad8d53e9fbf162 100644 (file)
@@ -1,5 +1,5 @@
-/* Target-machine dependent code for Hitachi Super-H, for GDB.
-   Copyright (C) 1993 Free Software Foundation, Inc.
+/* Target-dependent code for Hitachi Super-H, for GDB.
+   Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
 
 This file is part of GDB.
 
@@ -28,11 +28,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include "symtab.h"
 #include "gdbtypes.h"
 #include "gdbcmd.h"
+#include "gdbcore.h"
 #include "value.h"
 #include "dis-asm.h"
-#include "../opcodes/sh-opc.h"
-
-
 
 /* Prologue looks like
    [mov.l      <regs>,@-r15]...
@@ -82,9 +80,9 @@ gdb_print_insn_sh (memaddr, info)
      disassemble_info *info;
 {
   if (TARGET_BYTE_ORDER == BIG_ENDIAN)
-    return print_insn_sh (memaddr, &info);
+    return print_insn_sh (memaddr, info);
   else
-    return print_insn_shl (memaddr, &info);
+    return print_insn_shl (memaddr, info);
 }
 
 /* Given a GDB frame, determine the address of the calling function's frame.
@@ -104,12 +102,11 @@ sh_frame_chain (frame)
     return 0;
 }
 
-/* Put here the code to store, into a struct frame_saved_regs,
-   the addresses of the saved registers of frame described by FRAME_INFO.
+/* Put here the code to store, into a struct frame_saved_regs, the
+   addresses of the saved registers of frame described by FRAME_INFO.
    This includes special registers such as pc and fp saved in special
-   ways in the stack frame.  sp is even more special:
-   the address we return for it IS the sp for the next frame. */
-
+   ways in the stack frame.  sp is even more special: the address we
+   return for it IS the sp for the next frame. */
 
 void
 frame_find_saved_regs (fi, fsr)
@@ -123,7 +120,6 @@ frame_find_saved_regs (fi, fsr)
   int pc;
   int opc;
   int insn;
-  int hadf;
   int r3_val = 0;
 
   opc = pc = get_pc_function_start (fi->pc);
@@ -244,6 +240,7 @@ init_extra_frame_info (fromleaf, fi)
      struct frame_info *fi;
 {
   struct frame_saved_regs dummy;
+
   frame_find_saved_regs (fi, &dummy);
 }
 
@@ -310,20 +307,10 @@ show_regs (args, from_tty)
                   read_register (15));
 }
 \f
-
 void
 _initialize_sh_tdep ()
 {
-  extern int sim_memory_size;
-
   tm_print_insn = gdb_print_insn_sh;
 
-  /* FIXME, there should be a way to make a CORE_ADDR variable settable. */
-  add_show_from_set
-    (add_set_cmd ("memory_size", class_support, var_uinteger,
-                 (char *) &sim_memory_size,
-               "Set simulated memory size of simulator target.", &setlist),
-     &showlist);
-
   add_com ("regs", class_vars, show_regs, "Print all registers");
 }
This page took 0.025582 seconds and 4 git commands to generate.