aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2003-06-20 17:27:10 +0000
committerFrank Ch. Eigler <fche@redhat.com>2003-06-20 17:27:10 +0000
commit6ec8fa7a80dd65468b47eafd240d26ce31e48937 (patch)
tree851809f5766a6a27e205a94bc14b42931f6f032c
parent8619218dfc6cef48ebba54c7e4ea05d02457dc81 (diff)
downloadfsf-binutils-gdb-6ec8fa7a80dd65468b47eafd240d26ce31e48937.zip
fsf-binutils-gdb-6ec8fa7a80dd65468b47eafd240d26ce31e48937.tar.gz
fsf-binutils-gdb-6ec8fa7a80dd65468b47eafd240d26ce31e48937.tar.bz2
2003-06-17 Doug Evans <dje@sebabeach.org>
* 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.
-rw-r--r--sim/common/ChangeLog6
-rw-r--r--sim/common/cgen-trace.c4
-rw-r--r--sim/common/cgen-trace.h2
3 files changed, 9 insertions, 3 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog
index 71c3c38..16296da 100644
--- a/sim/common/ChangeLog
+++ b/sim/common/ChangeLog
@@ -1,3 +1,9 @@
+2003-06-17 Doug Evans <dje@sebabeach.org>
+
+ * 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 <msnyder@redhat.com>
* common/run.c (main): Remove SIM_H8300 ifdef.
diff --git a/sim/common/cgen-trace.c b/sim/common/cgen-trace.c
index 765ab57..d978d3e 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 be1dd1d..623fc1e 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_,