diff options
author | Peter Schauer <Peter.Schauer@mytum.de> | 1996-11-28 08:55:13 +0000 |
---|---|---|
committer | Peter Schauer <Peter.Schauer@mytum.de> | 1996-11-28 08:55:13 +0000 |
commit | 0f75e2e37bb2c608d9057dac13a72c4f480c960e (patch) | |
tree | c0f01df39ac169d680a3ba0b0d720631e9a0fc8e /gdb | |
parent | 6e7a01c144ae0bbecc535905b2585830c484e8da (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/vax-tdep.c | 18 |
2 files changed, 20 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ccb9b8c..1df7d8e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +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... 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; +} |