aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infrun.c7
2 files changed, 6 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 920df3e..256b9d0 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2021-02-03 Pedro Alves <pedro@palves.net>
+ * infrun.c (prepare_for_detach): Don't release scoped_restore
+ before returning.
+
+2021-02-03 Pedro Alves <pedro@palves.net>
+
* infrun.c (handle_one): New function, factored out from ...
(stop_all_threads): ... here.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 51d60f4..895f474 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -3607,13 +3607,8 @@ prepare_for_detach (void)
at this point, and signals are passed directly to the
inferior, so this must mean the process is gone. */
if (!ecs->wait_some_more)
- {
- restore_detaching.release ();
- error (_("Program exited while detaching"));
- }
+ error (_("Program exited while detaching"));
}
-
- restore_detaching.release ();
}
/* Wait for control to return from inferior to debugger.