aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-nindy.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2000-10-10 05:17:25 +0000
committerKevin Buettner <kevinb@redhat.com>2000-10-10 05:17:25 +0000
commit120abad8b7c1433b48d5d1c8fb43b19b20feccd9 (patch)
treede8040fd69afbe9fd3e1fd94c2047da4600dd524 /gdb/remote-nindy.c
parent23a87948dded8c5a7b832e3f5f86dbdd442e7053 (diff)
downloadgdb-120abad8b7c1433b48d5d1c8fb43b19b20feccd9.zip
gdb-120abad8b7c1433b48d5d1c8fb43b19b20feccd9.tar.gz
gdb-120abad8b7c1433b48d5d1c8fb43b19b20feccd9.tar.bz2
Protoization.
Diffstat (limited to 'gdb/remote-nindy.c')
-rw-r--r--gdb/remote-nindy.c20
1 files changed, 8 insertions, 12 deletions
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;