* 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.
This commit is contained in:
Peter Schauer 1996-11-28 08:55:13 +00:00
parent 6e7a01c144
commit 0f75e2e37b
2 changed files with 20 additions and 5 deletions

View File

@ -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...

View File

@ -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;
}