diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-09-30 02:39:10 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-09-30 02:39:10 +0000 |
commit | d0849a9a5a50d53a85228bd7efd0505a8f307c48 (patch) | |
tree | 4ce39cf5237dde477914608afb9f5f4cbbc0b2cc /gdb/procfs.c | |
parent | f572a39d1559be095b66dc346f00d205492b02bb (diff) | |
download | gdb-d0849a9a5a50d53a85228bd7efd0505a8f307c48.zip gdb-d0849a9a5a50d53a85228bd7efd0505a8f307c48.tar.gz gdb-d0849a9a5a50d53a85228bd7efd0505a8f307c48.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 86f42bf..5675eda 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -2509,8 +2509,7 @@ proc_set_watchpoint (procinfo *pi, CORE_ADDR addr, int len, int wflags) It doesn't get called that often... and if I open it every time, I don't need to lseek it. */ int -proc_iterate_over_mappings (func) - int (*func) (int, CORE_ADDR); +proc_iterate_over_mappings (int (*func) (int, CORE_ADDR)) { struct prmap *map; procinfo *pi; @@ -3036,10 +3035,9 @@ proc_update_threads (procinfo *pi) */ int -proc_iterate_over_threads (pi, func, ptr) - procinfo *pi; - int (*func) (procinfo *, procinfo *, void *); - void *ptr; +proc_iterate_over_threads (procinfo *pi, + int (*func) (procinfo *, procinfo *, void *), + void *ptr) { procinfo *thread, *next; int retval = 0; @@ -3899,13 +3897,19 @@ wait_again: return retval; } +/* 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. + + The return value is 0 if an error occurred or no bytes were + transferred. Otherwise, it will be a positive value which + indicates the number of bytes transferred between gdb and the + target. (Note that the interface also makes provisions for + negative values, but this capability isn't implemented here.) */ + static int -procfs_xfer_memory (memaddr, myaddr, len, dowrite, target) - CORE_ADDR memaddr; - char *myaddr; - int len; - int dowrite; - struct target_ops *target; /* ignored */ +procfs_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int dowrite, + struct target_ops *target) { procinfo *pi; int nbytes = 0; |