* ldmain.c (main): Error if --gc-sections and
[deliverable/binutils-gdb.git] / gdb / w65-tdep.c
index 0b047ec6d24752377eea7488b7a86d62bc96d8e9..e099f71e65a50b1e3912164e26783b0c5746f4e6 100644 (file)
@@ -15,7 +15,7 @@
 
    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 
 /*
    Contributed by Steve Chamberlain
@@ -29,7 +29,7 @@
 #include "gdbcmd.h"
 #include "gdbtypes.h"
 #include "dis-asm.h"
-
+#include "gdbcore.h"
 
 /* Return the saved PC from this frame. */
 
@@ -65,18 +65,6 @@ w65_push_dummy_frame ()
   abort ();
 }
 
-int
-print_insn (memaddr, stream)
-     CORE_ADDR memaddr;
-     GDB_FILE *stream;
-{
-  disassemble_info info;
-
-  GDB_INIT_DISASSEMBLE_INFO (info, stream);
-
-  return print_insn_w65 ((bfd_vma) memaddr, &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
@@ -299,3 +287,9 @@ print_register_hook (regno)
        printf_unfiltered ("<= ");
     }
 }
+
+void
+_initialize_w65_tdep ()
+{
+  tm_print_insn = print_insn_w65;
+}
This page took 0.02358 seconds and 4 git commands to generate.