From: Frank Ch. Eigler Date: Fri, 20 Jun 2003 17:27:10 +0000 (+0000) Subject: 2003-06-17 Doug Evans X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6ec8fa7a80dd65468b47eafd240d26ce31e48937;p=binutils-gdb.git 2003-06-17 Doug Evans * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible with disassemble_info:read_memory_func. * cgen-trace.c (sim_disasm_read_memory): Ditto. --- diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 71c3c38545f..16296da9409 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,9 @@ +2003-06-17 Doug Evans + + * cgen-trace.h (sim_disasm_read_memory): Update args to be compatible + with disassemble_info:read_memory_func. + * cgen-trace.c (sim_disasm_read_memory): Ditto. + 2003-06-04 Michael Snyder * common/run.c (main): Remove SIM_H8300 ifdef. diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c index 765ab57ab03..d978d3e57f6 100644 --- a/sim/common/cgen-trace.c +++ b/sim/common/cgen-trace.c @@ -322,12 +322,12 @@ sim_disasm_sprintf VPARAMS ((SFILE *f, const char *format, ...)) /* Memory read support for an opcodes disassembler. */ int -sim_disasm_read_memory (bfd_vma memaddr, bfd_byte *myaddr, int length, +sim_disasm_read_memory (bfd_vma memaddr, bfd_byte *myaddr, unsigned int length, struct disassemble_info *info) { SIM_CPU *cpu = (SIM_CPU *) info->application_data; SIM_DESC sd = CPU_STATE (cpu); - int length_read; + unsigned length_read; length_read = sim_core_read_buffer (sd, cpu, read_map, myaddr, memaddr, length); diff --git a/sim/common/cgen-trace.h b/sim/common/cgen-trace.h index be1dd1dff4e..623fc1eb6c7 100644 --- a/sim/common/cgen-trace.h +++ b/sim/common/cgen-trace.h @@ -81,7 +81,7 @@ extern int sim_disasm_sprintf (SFILE *, const char *, ...); #ifdef __BFD_H_SEEN__ struct disassemble_info; extern int -sim_disasm_read_memory (bfd_vma memaddr_, bfd_byte *myaddr_, int length_, +sim_disasm_read_memory (bfd_vma memaddr_, bfd_byte *myaddr_, unsigned int length_, struct disassemble_info *info_); extern void sim_disasm_perror_memory (int status_, bfd_vma memaddr_,