Protoization.

This commit is contained in:
Kevin Buettner 2000-10-18 03:29:25 +00:00
parent e6c774b42a
commit c338868aa6
4 changed files with 22 additions and 28 deletions

View File

@ -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.

View File

@ -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;

View File

@ -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)
{

View File

@ -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;