+Thu Nov 28 00:46:24 1996 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
+
+ * vax-tdep.c (vax_print_insn): Made static, modified to take
+ disassemble_info as parameter.
+ (_initialize_vax_tdep): New function to initialize tm_print_insn
+ to vax_print_insn.
+
Wed Nov 27 11:29:06 1996 Michael Snyder <msnyder@cleaver.cygnus.com>
* blockframe.c: ...Remove old-style CALL_DUMMY code...
/* Print VAX instructions for GDB, the GNU debugger.
- Copyright 1986, 1989, 1991, 1992 Free Software Foundation, Inc.
+ Copyright 1986, 1989, 1991, 1992, 1996 Free Software Foundation, Inc.
This file is part of GDB.
static unsigned char *print_insn_arg ();
\f
/* Print the vax instruction at address MEMADDR in debugged memory,
- on STREAM. Returns length of the instruction, in bytes. */
+ from disassembler info INFO.
+ Returns length of the instruction, in bytes. */
-int
-vax_print_insn (memaddr, stream)
+static int
+vax_print_insn (memaddr, info)
CORE_ADDR memaddr;
- GDB_FILE *stream;
+ disassemble_info *info;
{
unsigned char buffer[MAXLEN];
register int i;
register unsigned char *p;
register char *d;
+ GDB_FILE *stream = info->stream;
read_memory (memaddr, buffer, MAXLEN);
return (unsigned char *) p;
}
+
+void
+_initialize_vax_tdep ()
+{
+ tm_print_insn = vax_print_insn;
+}