From: Kevin Buettner Date: Tue, 10 Oct 2000 05:17:25 +0000 (+0000) Subject: Protoization. X-Git-Tag: newlib-1_9_0~771 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=120abad8b7c1433b48d5d1c8fb43b19b20feccd9;p=platform%2Fupstream%2Fbinutils.git Protoization. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2304317..340bc0e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2000-10-09 Kevin Buettner + + * remote-nindy.c (non_dle, nindy_xfer_inferior_memory): Protoize. + * remote-os9k.c (rombug_xfer_inferior_memory): Protoize. + * remote-rdi.c (arm_rdi_xfer_memory): Protoize. + 2000-10-09 Peter Schauer * config/i386/i386sol2.mh: Add XM_CLIBS definition to resolve diff --git a/gdb/remote-nindy.c b/gdb/remote-nindy.c index 807000d..c5e0a4a 100644 --- a/gdb/remote-nindy.c +++ b/gdb/remote-nindy.c @@ -240,14 +240,13 @@ nindy_files_info (void) nindy_initial_brk ? " with initial break" : ""); } -/* Return the number of characters in the buffer before - the first DLE character. */ +/* Return the number of characters in the buffer BUF before + the first DLE character. N is maximum number of characters to + consider. */ static int -non_dle (buf, n) - char *buf; /* Character buffer; NOT '\0'-terminated */ - int n; /* Number of characters in buffer */ +non_dle (char *buf, int n) { int i; @@ -482,15 +481,12 @@ nindy_store_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 - SHOULD_WRITE is nonzero. Returns the length copied. */ + SHOULD_WRITE is nonzero. Returns the length copied. TARGET is + unused. */ int -nindy_xfer_inferior_memory (memaddr, myaddr, len, should_write, target) - CORE_ADDR memaddr; - char *myaddr; - int len; - int should_write; - struct target_ops *target; /* ignored */ +nindy_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, + int should_write, struct target_ops *target) { if (len <= 0) return 0; diff --git a/gdb/remote-os9k.c b/gdb/remote-os9k.c index 343c75d..08e1d85 100644 --- a/gdb/remote-os9k.c +++ b/gdb/remote-os9k.c @@ -818,14 +818,15 @@ rombug_read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) return len; } -/* FIXME-someday! merge these two. */ +/* Transfer LEN bytes between GDB address MYADDR and target address + MEMADDR. If WRITE 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 -rombug_xfer_inferior_memory (memaddr, myaddr, len, write, target) - CORE_ADDR memaddr; - char *myaddr; - int len; - int write; - struct target_ops *target; /* ignored */ +rombug_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, + int write, struct target_ops *target) { if (write) return rombug_write_inferior_memory (memaddr, myaddr, len); diff --git a/gdb/remote-rdi.c b/gdb/remote-rdi.c index a7414aa..708c45f 100644 --- a/gdb/remote-rdi.c +++ b/gdb/remote-rdi.c @@ -622,16 +622,12 @@ arm_rdi_store_registers (int regno) /* Read or write LEN bytes from inferior memory at MEMADDR, transferring to or from debugger address MYADDR. Write to inferior if SHOULD_WRITE is nonzero. Returns length of data written or - read; 0 for error. */ + read; 0 for error. TARGET is unused. */ /* ARGSUSED */ static int -arm_rdi_xfer_memory (memaddr, myaddr, len, should_write, target) - CORE_ADDR memaddr; - char *myaddr; - int len; - int should_write; - struct target_ops *target; /* ignored */ +arm_rdi_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, + int should_write, struct target_ops *target) { int rslt, i;