diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-10-16 06:42:28 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-10-16 06:42:28 +0000 |
commit | 832c69cf028a7fc32de1bd6261451a9354707e4e (patch) | |
tree | 55349c5523a28f69f6cf1b1dc6b2ba265695a60f /gdb | |
parent | 6588847e4f855188fcd187e6484791dffc350469 (diff) | |
download | gdb-832c69cf028a7fc32de1bd6261451a9354707e4e.zip gdb-832c69cf028a7fc32de1bd6261451a9354707e4e.tar.gz gdb-832c69cf028a7fc32de1bd6261451a9354707e4e.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/remote-st.c | 15 | ||||
-rw-r--r-- | gdb/remote-utils.c | 4 | ||||
-rw-r--r-- | gdb/remote-vx.c | 16 |
4 files changed, 21 insertions, 20 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 201c57c..5bb4f4a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2000-10-15 Kevin Buettner <kevinb@redhat.com> + + * remote-st.c (st2000_xfer_inferior_memory): Protoize. + * remote-utils.c (gr_multi_scan): Protoize. + * remote-vx.c (vx_xfer_memory, net_get_symbols): Protoize. + 2000-10-13 Fernando Nasser <fnasser@cygnus.com> * remote.c (putpkt_binary): Call read_frame, not getpkt. Log message. diff --git a/gdb/remote-st.c b/gdb/remote-st.c index aa00e8f..85077bb 100644 --- a/gdb/remote-st.c +++ b/gdb/remote-st.c @@ -548,14 +548,15 @@ st2000_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 -st2000_xfer_inferior_memory (memaddr, myaddr, len, write, target) - CORE_ADDR memaddr; - char *myaddr; - int len; - int write; - struct target_ops *target; /* ignored */ +st2000_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, + int write, struct target_ops *target) { if (write) return st2000_write_inferior_memory (memaddr, myaddr, len); diff --git a/gdb/remote-utils.c b/gdb/remote-utils.c index 2077612..c2b833e 100644 --- a/gdb/remote-utils.c +++ b/gdb/remote-utils.c @@ -502,9 +502,7 @@ gr_create_inferior (char *execfile, char *args, char **env) pass non-matching data on. */ int -gr_multi_scan (list, passthrough) - char *list[]; - int passthrough; +gr_multi_scan (char *list[], int passthrough) { char *swallowed = NULL; /* holding area */ char *swallowed_p = swallowed; /* Current position in swallowed. */ diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c index 3606660..87c0c5e 100644 --- a/gdb/remote-vx.c +++ b/gdb/remote-vx.c @@ -468,19 +468,15 @@ vx_prepare_to_store (void) /* Copy LEN bytes to or from remote inferior's memory starting at MEMADDR to debugger memory starting at MYADDR. WRITE is true if writing to the - inferior. + inferior. TARGET is unused. Result is the number of bytes written or read (zero if error). The protocol allows us to return a negative count, indicating that we can't handle the current address but can handle one N bytes further, but vxworks doesn't give us that information. */ static int -vx_xfer_memory (memaddr, myaddr, len, write, target) - CORE_ADDR memaddr; - char *myaddr; - int len; - int write; - struct target_ops *target; /* ignored */ +vx_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write, + struct target_ops *target) { int status; Rptrace ptrace_in; @@ -800,14 +796,14 @@ net_get_boot_file (char **pBootFile) return (status == RPC_SUCCESS) ? 0 : -1; } -/* Fetch a list of loaded object modules from the VxWorks target. +/* Fetch a list of loaded object modules from the VxWorks target + and store in PLOADTABLE. Returns -1 if rpc failed, 0 otherwise There's no way to check if the returned loadTable is correct. VxWorks doesn't check it. */ static int -net_get_symbols (pLoadTable) - ldtabl *pLoadTable; /* return pointer to ldtabl here */ +net_get_symbols (ldtabl *pLoadTable) { enum clnt_stat status; |