binutils-gdb/gdb/testsuite
Paul N. Hilfinger 0f3bb72eb7 Refactor 'maint time' command statistics.
Consolidate code for displaying per-command time and space statistics to avoid
duplication.  Piggyback on cleanups so that statistics get printed even when
commands terminate as a result of an error.

Changelog

    * gdb/defs.h (make_command_stats_cleanup): Declare.
    (set_display_time): Declare.
    (set_display_space): Declare.
    * gdb/event-top.c (command_handler): Use make_command_stats_cleanup.
    * gdb/main.c (display_time, display_space): Move definitions to utils.c.
    (captured_main): Use make_command_stats_cleanup to get start-up
    statistics.
    Use set_display_time and set_display_space for processing OPT_STATISTICS
    case.
    * gdb/maint.c (maintenance_time_display): Use set_display_time.
    (maintenance_space_display): Use set_display_space.
    * gdb/top.c (execute_command): Remove obsolete 'maint time' code.
    (command_loop): Use make_command_stats_cleanup.
    * gdb/utils.c (struct cmd_stats): Structure for storing initial time
    and space usage.
    (display_time, display_space): Move definitions here from utils.c.
    (set_display_time): New function.
    (set_display_space): New function.
    (make_command_stats_cleanup): New function.
    (report_command_stats): New auxiliary function for
    make_command_stats_cleanup.
    * gdb/testsuite/gdb.gdb/selftest.exp: Adjust expected message for
    capturing start-up runtime.
2010-06-26 06:44:47 +00:00
..
config
gdb.ada 2010-06-08 Michael Snyder <msnyder@vmware.com> 2010-06-10 19:48:20 +00:00
gdb.arch ChangeLog: 2010-06-19 17:36:51 +00:00
gdb.asm 2010-06-08 Michael Snyder <msnyder@vmware.com> 2010-06-10 19:48:20 +00:00
gdb.base gdb/ 2010-06-24 15:17:32 +00:00
gdb.cell ChangeLog: 2010-06-25 13:00:33 +00:00
gdb.cp Added import loop test. 2010-06-25 18:05:30 +00:00
gdb.disasm Examine instruction at label start' instead of _start'. 2010-06-14 19:21:11 +00:00
gdb.dwarf2 gdb/testsuite/ 2010-06-25 15:34:46 +00:00
gdb.fortran gdb/ 2010-06-02 23:01:01 +00:00
gdb.gdb Refactor 'maint time' command statistics. 2010-06-26 06:44:47 +00:00
gdb.hp Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.java gdb/testsuite/ 2010-06-01 17:22:33 +00:00
gdb.mi * gdb.mi/mi-nonstop.exp: Do not call perror if non-stop mode is 2010-06-14 15:45:33 +00:00
gdb.modula2
gdb.multi * gdb.multi/base.exp, gdb.multi/bkpt-multi-exec.exp: Use 2010-06-18 15:08:29 +00:00
gdb.objc Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.opt 2010-06-02 Michael Snyder <msnyder@vmware.com> 2010-06-02 21:46:45 +00:00
gdb.pascal * gdb.arch/i386-prologue.exp (skip_breakpoint): Fix setup_kfail 2010-05-25 21:02:00 +00:00
gdb.python gdb 2010-06-25 18:15:18 +00:00
gdb.reverse 2010-06-03 Michael Snyder <msnyder@vmware.com> 2010-06-03 23:54:18 +00:00
gdb.server 2010-06-08 Michael Snyder <msnyder@vmware.com> 2010-06-10 19:48:20 +00:00
gdb.stabs Do not set prms_id/bug_id anymore. 2010-05-05 18:07:04 +00:00
gdb.threads * thread.c (thread_id_make_value): Make a value representing the 2010-06-18 17:44:40 +00:00
gdb.trace * gdb.trace/packetlen.exp: Respect gdb_target_supports_trace. 2010-06-11 23:25:59 +00:00
gdb.xml * gdbtypes.c (append_composite_type_field_raw): New. 2010-03-01 17:19:23 +00:00
lib * lib/gdb.exp (banned_variables_traced): New global variable. 2010-06-22 07:21:29 +00:00
.gdbinit
aclocal.m4
ChangeLog Refactor 'maint time' command statistics. 2010-06-26 06:44:47 +00:00
configure testsuite/ 2010-02-19 17:13:21 +00:00
configure.ac testsuite/ 2010-02-19 17:13:21 +00:00
dg-extract-results.sh gdb/testsuite/ 2010-03-22 20:38:58 +00:00
Makefile.in gdb/testsuite/ 2010-04-09 20:50:46 +00:00
TODO