summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/infptrace.c10
-rw-r--r--gdb/infttrace.c10
3 files changed, 10 insertions, 14 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6e039cff8a6..a8febd6be70 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2000-09-08 Kevin Buettner <kevinb@redhat.com>
+
+ * infptrace.c, infttrace.c (child_xfer_memory): Protoize.
+
2000-09-07 J.T. Conklin <jtc@redback.com>
* config/i386/nbsd.mt (TDEPFILES): Add i386nbsd-tdep.o.
diff --git a/gdb/infptrace.c b/gdb/infptrace.c
index b189f507788..30ceb87c4cc 100644
--- a/gdb/infptrace.c
+++ b/gdb/infptrace.c
@@ -502,7 +502,7 @@ store_inferior_registers (int regno)
/* Copy LEN bytes to or from inferior's memory starting at MEMADDR
to debugger memory starting at MYADDR. Copy to inferior if
- WRITE is nonzero.
+ WRITE is nonzero. TARGET is ignored.
Returns the length copied, which is either the LEN argument or zero.
This xfer function does not do partial moves, since child_ops
@@ -510,12 +510,8 @@ store_inferior_registers (int regno)
anyway. */
int
-child_xfer_memory (memaddr, myaddr, len, write, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
- struct target_ops *target; /* ignored */
+child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ struct target_ops *target)
{
register int i;
/* Round starting address down to longword boundary. */
diff --git a/gdb/infttrace.c b/gdb/infttrace.c
index 8b2fa62f058..9168ce31137 100644
--- a/gdb/infttrace.c
+++ b/gdb/infttrace.c
@@ -4907,7 +4907,7 @@ _initialize_kernel_u_addr (void)
/* Copy LEN bytes to or from inferior's memory starting at MEMADDR
to debugger memory starting at MYADDR. Copy to inferior if
- WRITE is nonzero.
+ WRITE is nonzero. TARGET is ignored.
Returns the length copied, which is either the LEN argument or zero.
This xfer function does not do partial moves, since child_ops
@@ -4915,12 +4915,8 @@ _initialize_kernel_u_addr (void)
anyway. */
int
-child_xfer_memory (memaddr, myaddr, len, write, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
- struct target_ops *target; /* ignored */
+child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ struct target_ops *target)
{
register int i;
/* Round starting address down to longword boundary. */