diff options
Diffstat (limited to 'gdb/event-top.c')
-rw-r--r-- | gdb/event-top.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/event-top.c b/gdb/event-top.c index 9b0ccbc..acf8474 100644 --- a/gdb/event-top.c +++ b/gdb/event-top.c @@ -562,13 +562,12 @@ void command_handler (char *command) { struct ui *ui = current_ui; - struct cleanup *stat_chain; char *c; if (ui->instream == ui->stdin_stream) reinitialize_more_filter (); - stat_chain = make_command_stats_cleanup (1); + scoped_command_stats stat_reporter (true); /* Do not execute commented lines. */ for (c = command; *c == ' ' || *c == '\t'; c++) @@ -580,8 +579,6 @@ command_handler (char *command) /* Do any commands attached to breakpoint we stopped at. */ bpstat_do_actions (); } - - do_cleanups (stat_chain); } /* Append RL, an input line returned by readline or one of its |