diff options
author | Andrew Cagney <cagney@redhat.com> | 1998-12-03 05:34:25 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 1998-12-03 05:34:25 +0000 |
commit | 1c3cd1b020893108b0b94fc2b0990200240887d8 (patch) | |
tree | 2405ec14bff6a53ae5fb94e88d7405497eab2f3e /gdb/monitor.c | |
parent | 321d48c5b8248865d580c9e169ceb776730b7644 (diff) | |
download | gdb-1c3cd1b020893108b0b94fc2b0990200240887d8.zip gdb-1c3cd1b020893108b0b94fc2b0990200240887d8.tar.gz gdb-1c3cd1b020893108b0b94fc2b0990200240887d8.tar.bz2 |
Clean up function return types. Functions not returning values,
functions unnecessarily returning values.
Diffstat (limited to 'gdb/monitor.c')
-rw-r--r-- | gdb/monitor.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/gdb/monitor.c b/gdb/monitor.c index 3e0a488..60cfc14 100644 --- a/gdb/monitor.c +++ b/gdb/monitor.c @@ -419,7 +419,7 @@ readchar (timeout) if (c == SERIAL_TIMEOUT) #if 0 /* MAINTENANCE_CMDS */ - /* I fail to see how detaching here can be useful + /* I fail to see how detaching here can be useful */ if (in_monitor_wait) /* Watchdog went off */ { target_mourn_inferior (); @@ -794,7 +794,11 @@ monitor_supply_register (regno, valstr) /* Tell the remote machine to resume. */ -int flush_monitor_dcache(void) { dcache_flush (remote_dcache); } +void +flush_monitor_dcache () +{ + dcache_flush (remote_dcache); +} static void monitor_resume (pid, step, sig) @@ -1360,7 +1364,8 @@ monitor_write_memory (memaddr, myaddr, len) } -static monitor_write_even_block(memaddr,myaddr,len) +static int +monitor_write_even_block(memaddr,myaddr,len) CORE_ADDR memaddr ; char * myaddr ; int len ; @@ -1418,7 +1423,8 @@ static int monitor_write_memory_bytes(memaddr,myaddr,len) } -static longlongendswap(unsigned char * a) +static void +longlongendswap (unsigned char * a) { int i,j ; unsigned char x ; @@ -1831,16 +1837,6 @@ monitor_read_memory (memaddr, myaddr, len) return len; } -/* This version supports very large reads by looping on multiline - dump bytes outputs. Beware of buffering limits. - */ -static int monotor_read_memory_block(memaddr,myaddr,len) - CORE_ADDR memaddr ; - char * myaddr ; - int len ; -{ -} - static int monitor_xfer_memory (memaddr, myaddr, len, write, target) CORE_ADDR memaddr; |