* mi/mi-main.c: Include <sys/resource.h> if present.
authorNick Roberts <nickrob@snap.net.nz>
Fri, 2 Feb 2007 23:01:27 +0000 (23:01 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Fri, 2 Feb 2007 23:01:27 +0000 (23:01 +0000)
commitd8c83789e9a72613a31a220966b1548b1c884ae9
tree44eedb15bcbbb0feb3f4f508b2e3796622eee5f9
parent24325aea77a78a0d37b3e64b93a00b09df3a2a67
* mi/mi-main.c: Include <sys/resource.h> if present.
(rusage): Declare if HAVE_GETRUSAGE.
(current_command_ts, do_timings): New static variables.
(timestamp, print_diff_now, print_diff, timeval_diff):
New static timing functions.
(mi_cmd_enable_timings): New function for new MI command.
(captured_mi_execute_command, mi_execute_async_cli_command):
Call timing functions.

* mi/mi-cmds.c (mi_cmds): Add entry for new MI command
-enable-timings.

* mi/mi-cmds.h (mi_cmd_enable_timings): New extern.

* mi/mi-parse.h: (mi_timestamp): New structure.
(mi_parse): Add mi_timestamp* member.
gdb/mi/mi-cmds.c
gdb/mi/mi-cmds.h
gdb/mi/mi-main.c
gdb/mi/mi-parse.h