Fix prototype problems related to recent disassembler changes
This commit is contained in:
parent
494503c776
commit
a6cead71cd
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user