Create tdep->rx_psw_type and tdep->rx_fpsw_type lazily
[deliverable/binutils-gdb.git] / gdb / event-top.c
index 9b0ccbc18d954eb56a5a6507b4272ce319f7dd41..acf84747289958cfe743d7f573ce5b0699d4a5ee 100644 (file)
@@ -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
This page took 0.024523 seconds and 4 git commands to generate.