aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-04-01 18:04:51 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-04-01 18:04:51 +0000
commita6cead71cd9539e468b3114142319e6a4f6c4a22 (patch)
treec6a6132c53864f1d3a48464ee80ac8b0442bd984
parent494503c776cf2a11e65f7d3e4a4635a6c64fd977 (diff)
downloadgdb-a6cead71cd9539e468b3114142319e6a4f6c4a22.zip
gdb-a6cead71cd9539e468b3114142319e6a4f6c4a22.tar.gz
gdb-a6cead71cd9539e468b3114142319e6a4f6c4a22.tar.bz2
Fix prototype problems related to recent disassembler changes
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/core.c3
-rw-r--r--include/ChangeLog4
-rw-r--r--include/dis-asm.h3
-rw-r--r--opcodes/sparc-dis.c5
5 files changed, 16 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 502bf4b..ef4c16b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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
diff --git a/gdb/core.c b/gdb/core.c
index 3fa964b..a513dbc 100644
--- a/gdb/core.c
+++ b/gdb/core.c
@@ -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);
}
diff --git a/include/ChangeLog b/include/ChangeLog
index f0379b5..7e8e482 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -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.
diff --git a/include/dis-asm.h b/include/dis-asm.h
index 86666c3..51808a8 100644
--- a/include/dis-asm.h
+++ b/include/dis-asm.h
@@ -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
diff --git a/opcodes/sparc-dis.c b/opcodes/sparc-dis.c
index 2d20e60..5a10310 100644
--- a/opcodes/sparc-dis.c
+++ b/opcodes/sparc-dis.c
@@ -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