aboutsummaryrefslogtreecommitdiff
path: root/gdb/defs.h
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-08-02 03:02:05 +0000
committerDaniel Jacobowitz <drow@false.org>2005-08-02 03:02:05 +0000
commit2b71414df9c47e9a1deca9885bf59ecbfa82a0ad (patch)
tree96f62a4374fb903ff360f9bce3fe841753196869 /gdb/defs.h
parent4bb64c2874fb99d88129a9f329586625f9a2853b (diff)
downloadfsf-binutils-gdb-2b71414df9c47e9a1deca9885bf59ecbfa82a0ad.zip
fsf-binutils-gdb-2b71414df9c47e9a1deca9885bf59ecbfa82a0ad.tar.gz
fsf-binutils-gdb-2b71414df9c47e9a1deca9885bf59ecbfa82a0ad.tar.bz2
Suggested by Shaun Jackman <sjackman@gmail.com>:
* defs.h (print_transfer_performance): Update prototype. * m32r-rom.c (m32r_load, m32r_upload_command): Use gettimeofday for print_transfer_performance. * remote-m32r-sdi.c (m32r_load): Likewise. * symfile.c (generic_load): Likewise. (report_transfer_performance): Create a dummy struct timeval. (print_transfer_performance): Use a more accurate measure of performance.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r--gdb/defs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/defs.h b/gdb/defs.h
index 7548455..1880bc0 100644
--- a/gdb/defs.h
+++ b/gdb/defs.h
@@ -552,10 +552,12 @@ extern void symbol_file_command (char *, int);
extern void generic_load (char *name, int from_tty);
/* Summarise a download */
+struct timeval;
extern void print_transfer_performance (struct ui_file *stream,
unsigned long data_count,
unsigned long write_count,
- unsigned long time_count);
+ const struct timeval *start_time,
+ const struct timeval *end_time);
/* From top.c */