summaryrefslogtreecommitdiffstats
path: root/gdb
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-10-18 03:29:25 +0000
committerKevin Buettner <kevinb@redhat.com>2000-10-18 03:29:25 +0000
commitc338868aa604bab130d51c50ece12ac68bd63c94 (patch)
tree37e680db5a420b709d36c175c3a626a8d79e6d18 /gdb
parente6c774b42adff3c63cb512132d9a7c40ca99be72 (diff)
downloadppe42-binutils-c338868aa604bab130d51c50ece12ac68bd63c94.tar.gz
ppe42-binutils-c338868aa604bab130d51c50ece12ac68bd63c94.zip
Protoization.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/remote-vx29k.c6
-rw-r--r--gdb/remote.c24
-rw-r--r--gdb/sol-thread.c14
4 files changed, 22 insertions, 28 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2673342f8b..fa854848c6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2000-10-17 Kevin Buettner <kevinb@redhat.com>
+
+ * remote-vx29k.c (vx29k_frame_chain_valid): Protoize.
+ * remote.c (remote_xfer_memory, remote_search): Protoize.
+ * sol-thread.c (sol_thread_xfer_memory): Protoize.
+
2000-10-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
* sparc-tdep.c (sparc_fix_call_dummy): Improve comments.
diff --git a/gdb/remote-vx29k.c b/gdb/remote-vx29k.c
index 7168605a06..f99ce40032 100644
--- a/gdb/remote-vx29k.c
+++ b/gdb/remote-vx29k.c
@@ -172,12 +172,10 @@ vx_write_register (int regno)
obtain the frame pointer (lr1) contents, we must add 4 bytes.
Note : may be we should modify init_frame_info() to get the frame pointer
and store it into the frame_info struct rather than reading its
- contents when FRAME_CHAIN_VALID is invoked. */
+ contents when FRAME_CHAIN_VALID is invoked. THISFRAME is unused. */
int
-vx29k_frame_chain_valid (chain, thisframe)
- CORE_ADDR chain;
- struct frame_info *thisframe; /* not used here */
+vx29k_frame_chain_valid (CORE_ADDR chain, struct frame_info *thisframe)
{
int fp_contents;
diff --git a/gdb/remote.c b/gdb/remote.c
index de993640b4..ef2f8b489d 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -3546,16 +3546,12 @@ remote_read_bytes (CORE_ADDR memaddr, char *myaddr, int len)
/* Read or write LEN bytes from inferior memory at MEMADDR,
transferring to or from debugger address BUFFER. Write to inferior if
SHOULD_WRITE is nonzero. Returns length of data written or read; 0
- for error. */
+ for error. TARGET is unused. */
/* ARGSUSED */
static int
-remote_xfer_memory (mem_addr, buffer, mem_len, should_write, target)
- CORE_ADDR mem_addr;
- char *buffer;
- int mem_len;
- int should_write;
- struct target_ops *target; /* ignored */
+remote_xfer_memory (CORE_ADDR mem_addr, char *buffer, int mem_len,
+ int should_write, struct target_ops *target)
{
CORE_ADDR targ_addr;
int targ_len;
@@ -3572,17 +3568,9 @@ remote_xfer_memory (mem_addr, buffer, mem_len, should_write, target)
/* Enable after 4.12. */
void
-remote_search (len, data, mask, startaddr, increment, lorange, hirange
- addr_found, data_found)
- int len;
- char *data;
- char *mask;
- CORE_ADDR startaddr;
- int increment;
- CORE_ADDR lorange;
- CORE_ADDR hirange;
- CORE_ADDR *addr_found;
- char *data_found;
+remote_search (int len, char *data, char *mask, CORE_ADDR startaddr,
+ int increment, CORE_ADDR lorange, CORE_ADDR hirange,
+ CORE_ADDR *addr_found, char *data_found)
{
if (increment == -4 && len == 4)
{
diff --git a/gdb/sol-thread.c b/gdb/sol-thread.c
index 5e0b1da989..d78f8e609c 100644
--- a/gdb/sol-thread.c
+++ b/gdb/sol-thread.c
@@ -754,13 +754,15 @@ sol_thread_prepare_to_store (void)
procfs_ops.to_prepare_to_store ();
}
+/* Transfer LEN bytes between GDB address MYADDR and target address
+ MEMADDR. If DOWRITE is non-zero, transfer them to the target,
+ otherwise transfer them from the target. TARGET is unused.
+
+ Returns the number of bytes transferred. */
+
static int
-sol_thread_xfer_memory (memaddr, myaddr, len, dowrite, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int dowrite;
- struct target_ops *target; /* ignored */
+sol_thread_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite,
+ struct target_ops *target)
{
int retval;
struct cleanup *old_chain;
OpenPOWER on IntegriCloud