aboutsummaryrefslogtreecommitdiff
path: root/gdb/vax-tdep.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1996-11-28 08:55:13 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1996-11-28 08:55:13 +0000
commit0f75e2e37bb2c608d9057dac13a72c4f480c960e (patch)
treec0f01df39ac169d680a3ba0b0d720631e9a0fc8e /gdb/vax-tdep.c
parent6e7a01c144ae0bbecc535905b2585830c484e8da (diff)
downloadgdb-0f75e2e37bb2c608d9057dac13a72c4f480c960e.zip
gdb-0f75e2e37bb2c608d9057dac13a72c4f480c960e.tar.gz
gdb-0f75e2e37bb2c608d9057dac13a72c4f480c960e.tar.bz2
* 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.
Diffstat (limited to 'gdb/vax-tdep.c')
-rw-r--r--gdb/vax-tdep.c18
1 files changed, 13 insertions, 5 deletions
diff --git a/gdb/vax-tdep.c b/gdb/vax-tdep.c
index 062dcf2..f9dd9fa 100644
--- a/gdb/vax-tdep.c
+++ b/gdb/vax-tdep.c
@@ -1,5 +1,5 @@
/* 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.
@@ -30,17 +30,19 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
static unsigned char *print_insn_arg ();
/* 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);
@@ -233,3 +235,9 @@ print_insn_arg (d, p, addr, stream)
return (unsigned char *) p;
}
+
+void
+_initialize_vax_tdep ()
+{
+ tm_print_insn = vax_print_insn;
+}