Fix prototype problems related to recent disassembler changes

This commit is contained in:
Jim Kingdon 1993-04-01 18:04:51 +00:00
parent 494503c776
commit a6cead71cd
5 changed files with 16 additions and 4 deletions

View File

@ -1,3 +1,8 @@
Thu Apr 1 09:01:38 1993 Jim Kingdon (kingdon@cygnus.com)
* core.c (dis_asm_read_memory): Reinstate 4th arg. The prototype
has been fixed.
Thu Apr 1 09:34:43 1993 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
* breakpoint.c (bpstat_print, bpstat_stop_status): Change to walk the

View File

@ -166,10 +166,11 @@ read_memory (memaddr, myaddr, len)
FIXME: not according to it's prototype. 930331 krp. */
int
dis_asm_read_memory (memaddr, myaddr, len)
dis_asm_read_memory (memaddr, myaddr, len, info)
bfd_vma memaddr;
bfd_byte *myaddr;
int len;
disassemble_info *info;
{
return target_read_memory (memaddr, myaddr, len);
}

View File

@ -1,3 +1,7 @@
Thu Apr 1 09:00:10 1993 Jim Kingdon (kingdon@cygnus.com)
* dis-asm.h (dis_asm_read_memory): Fix prototype.
Wed Mar 31 17:40:16 1993 Jim Kingdon (kingdon@lioth.cygnus.com)
* dis-asm.h: Add print_insn_sparc.

View File

@ -54,7 +54,8 @@ extern void perror_memory PARAMS ((int, bfd_vma, struct disassemble_info *));
/* GDB--Like target_read_memory, but slightly different parameters. */
extern int
dis_asm_read_memory PARAMS ((bfd_vma memaddr, bfd_byte *myaddr, int len));
dis_asm_read_memory PARAMS ((bfd_vma memaddr, bfd_byte *myaddr, int len,
disassemble_info *info));
/* GDB--Like memory_error with slightly different parameters. */
extern void

View File

@ -460,7 +460,7 @@ print_insn_sparc (memaddr, info)
errcode =
(*info->read_memory_func)
(memaddr - 4,
(char *)&prev_insn, sizeof (prev_insn));
(char *)&prev_insn, sizeof (prev_insn), info);
if (errcode == 0)
{
@ -475,7 +475,8 @@ print_insn_sparc (memaddr, info)
if (is_delayed_branch (prev_insn))
errcode = (*info->read_memory_func)
(memaddr - 8, (char *)&prev_insn, sizeof (prev_insn));
(memaddr - 8, (char *)&prev_insn, sizeof (prev_insn),
info);
}
/* If there was a problem reading memory, then assume