This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Update an obsolete cleanup comment


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=979a0d1304ac7d73c9887f851e811d49752923fb

commit 979a0d1304ac7d73c9887f851e811d49752923fb
Author: Tom Tromey <tom@tromey.com>
Date:   Wed Jan 23 18:58:36 2019 +0000

    Update an obsolete cleanup comment
    
    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.

Diff:
---
 gdb/ChangeLog | 4 ++++
 gdb/infrun.c  | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 33261fe..d7bfd2d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,4 +1,8 @@
 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>
 
 	* infrun.c (reinstall_readline_callback_handler_cleanup): Remove
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 6857467..cdfdf49 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]