#include "symtab.h"
#include "gdbcmd.h"
#include "gdbtypes.h"
-
+#include "dis-asm.h"
/* Return the saved PC from this frame.
If the frame has a memory copy of SRP_REGNUM, use that. If not,
CORE_ADDR memaddr;
FILE *stream;
{
- char temp[20];
+ disassemble_info info;
+
+ GDB_INIT_DISASSEMBLE_INFO(info, stream);
- read_memory (memaddr, temp, 20);
if (BIG)
{
- return print_insn_z8001 (memaddr, temp, stream);
+ return print_insn_z8001 (memaddr, &info);
}
else
{
- return print_insn_z8002 (memaddr, temp, stream);
+ return print_insn_z8002 (memaddr, &info);
}
}