diff options
author | Tom Tromey <tom@tromey.com> | 2016-09-24 21:10:45 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2016-10-21 14:17:35 -0600 |
commit | 1e3b796d58ac3c4396e1739f44a0a41de6335eef (patch) | |
tree | 110d08e5fa5cab3124dc0d6eb2864ad7675d9563 /Makefile.in | |
parent | 6fc31fc73b577fce960730d87ead9a25df6c2653 (diff) | |
download | gdb-1e3b796d58ac3c4396e1739f44a0a41de6335eef.zip gdb-1e3b796d58ac3c4396e1739f44a0a41de6335eef.tar.gz gdb-1e3b796d58ac3c4396e1739f44a0a41de6335eef.tar.bz2 |
Change command stats reporting to use class
This removes make_command_stats_cleanup in favor of an RAII class.
The patch is reasonably straightforward, but keeping the same
semantics without excessive reindentation required splitting
captured_main in two.
2016-10-21 Tom Tromey <tom@tromey.com>
* maint.h (scoped_command_stats): New class.
(make_command_stats_cleanup): Don't declare.
* maint.c (struct cmd_stats): Remove.
(~scoped_command_stats): Rename from report_command_stats. Now a
destructor.
(scoped_command_stats): Rename from make_command_stats_cleanup.
Now a constructor.
* main.c (captured_main_1): New function. Use
scoped_command_stats.
(captured_main): Call captured_main_1.
* event-top.c (command_handler): Use scoped_command_stats.
Diffstat (limited to 'Makefile.in')
0 files changed, 0 insertions, 0 deletions