diff options
author | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2000-07-30 01:48:28 +0000 |
commit | fba45db2faf619e71856ee38ec63949c0ef6903e (patch) | |
tree | 107efc21d2b12f54d84b59e75251449e3d5fd096 /gdb/dcache.c | |
parent | 29e6d33b03a5e39540d17bc8235573b1dac13341 (diff) | |
download | gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.zip gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.gz gdb-fba45db2faf619e71856ee38ec63949c0ef6903e.tar.bz2 |
Protoization.
Diffstat (limited to 'gdb/dcache.c')
-rw-r--r-- | gdb/dcache.c | 45 |
1 files changed, 12 insertions, 33 deletions
diff --git a/gdb/dcache.c b/gdb/dcache.c index 1c52cc3..7e5a755 100644 --- a/gdb/dcache.c +++ b/gdb/dcache.c @@ -173,8 +173,7 @@ DCACHE *last_cache; /* Used by info dcache */ /* Free all the data cache blocks, thus discarding all cached data. */ void -dcache_flush (dcache) - DCACHE *dcache; +dcache_flush (DCACHE *dcache) { int i; dcache->valid_head = 0; @@ -204,9 +203,7 @@ dcache_flush (dcache) containing it. */ static struct dcache_block * -dcache_hit (dcache, addr) - DCACHE *dcache; - CORE_ADDR addr; +dcache_hit (DCACHE *dcache, CORE_ADDR addr) { register struct dcache_block *db; @@ -230,9 +227,7 @@ dcache_hit (dcache, addr) be written is. */ static int -dcache_write_line (dcache, db) - DCACHE *dcache; - register struct dcache_block *db; +dcache_write_line (DCACHE *dcache, register struct dcache_block *db) { int s; int e; @@ -280,8 +275,7 @@ dcache_write_line (dcache, db) list...). */ static struct dcache_block * -dcache_alloc (dcache) - DCACHE *dcache; +dcache_alloc (DCACHE *dcache) { register struct dcache_block *db; @@ -320,10 +314,7 @@ dcache_alloc (dcache) Returns 0 on error. */ static int -dcache_peek_byte (dcache, addr, ptr) - DCACHE *dcache; - CORE_ADDR addr; - char *ptr; +dcache_peek_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr) { register struct dcache_block *db = dcache_hit (dcache, addr); int ok = 1; @@ -361,8 +352,7 @@ dcache_peek_byte (dcache, addr, ptr) /* Writeback any dirty lines to the remote. */ static int -dcache_writeback (dcache) - DCACHE *dcache; +dcache_writeback (DCACHE *dcache) { struct dcache_block *db; @@ -383,10 +373,7 @@ dcache_writeback (dcache) */ static int -dcache_poke_byte (dcache, addr, ptr) - DCACHE *dcache; - CORE_ADDR addr; - char *ptr; +dcache_poke_byte (DCACHE *dcache, CORE_ADDR addr, char *ptr) { register struct dcache_block *db = dcache_hit (dcache, addr); @@ -405,9 +392,7 @@ dcache_poke_byte (dcache, addr, ptr) /* Initialize the data cache. */ DCACHE * -dcache_init (reading, writing) - memxferfunc reading; - memxferfunc writing; +dcache_init (memxferfunc reading, memxferfunc writing) { int csize = sizeof (struct dcache_block) * DCACHE_SIZE; DCACHE *dcache; @@ -434,12 +419,8 @@ dcache_init (reading, writing) This routine is indended to be called by remote_xfer_ functions. */ int -dcache_xfer_memory (dcache, memaddr, myaddr, len, should_write) - DCACHE *dcache; - CORE_ADDR memaddr; - char *myaddr; - int len; - int should_write; +dcache_xfer_memory (DCACHE *dcache, CORE_ADDR memaddr, char *myaddr, int len, + int should_write) { int i; @@ -470,9 +451,7 @@ dcache_xfer_memory (dcache, memaddr, myaddr, len, should_write) } static void -dcache_info (exp, tty) - char *exp; - int tty; +dcache_info (char *exp, int tty) { struct dcache_block *p; @@ -510,7 +489,7 @@ set_dcache_state (int what) } void -_initialize_dcache () +_initialize_dcache (void) { add_show_from_set (add_set_cmd ("remotecache", class_support, var_boolean, |