Update an obsolete cleanup comment
authorTom Tromey <tom@tromey.com>
Wed, 23 Jan 2019 18:58:36 +0000 (18:58 +0000)
committerPedro Alves <palves@redhat.com>
Wed, 23 Jan 2019 19:14:44 +0000 (19:14 +0000)
This updates a comment in fetch_inferior_event.  The comment refers to
a cleanup that is now a scoped_restore_current_thread.

gdb/ChangeLog:
2019-01-23  Tom Tromey  <tom@tromey.com>

* infrun.c (fetch_inferior_event): Update comment.

gdb/ChangeLog
gdb/infrun.c

index 33261fed14e668bf327929749d0e472cce7921b3..d7bfd2dba012fe557f54bc16434b3b66983351b6 100644 (file)
@@ -1,3 +1,7 @@
+2019-01-23  Tom Tromey  <tom@tromey.com>
+
+       * infrun.c (fetch_inferior_event): Update comment.
+
 2019-01-23  Tom Tromey  <tom@tromey.com>
            Pedro Alves  <palves@redhat.com>
 
index 68574679830f982665f1a07347dce9f45e076569..cdfdf4907088a723ad707d6ba4be4c961679fbbb 100644 (file)
@@ -3744,7 +3744,7 @@ fetch_inferior_event (void *client_data)
     ptid_t finish_ptid = !target_is_non_stop_p () ? minus_one_ptid : ecs->ptid;
     scoped_finish_thread_state finish_state (finish_ptid);
 
-    /* Get executed before make_cleanup_restore_current_thread above to apply
+    /* Get executed before scoped_restore_current_thread above to apply
        still for the thread which has thrown the exception.  */
     auto defer_bpstat_clear
       = make_scope_exit (bpstat_clear_actions);