From c338868aa604bab130d51c50ece12ac68bd63c94 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Wed, 18 Oct 2000 03:29:25 +0000 Subject: [PATCH] Protoization. --- gdb/ChangeLog | 6 ++++++ gdb/remote-vx29k.c | 6 ++---- gdb/remote.c | 24 ++++++------------------ gdb/sol-thread.c | 14 ++++++++------ 4 files changed, 22 insertions(+), 28 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2673342..fa85484 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2000-10-17 Kevin Buettner + + * 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 * sparc-tdep.c (sparc_fix_call_dummy): Improve comments. diff --git a/gdb/remote-vx29k.c b/gdb/remote-vx29k.c index 7168605..f99ce40 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 de99364..ef2f8b4 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 5e0b1da..d78f8e6 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; -- 2.7.4