Fix re-runs of a second inferior (PR gdb/25410)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
index 3d166f06404467c62fc84a9c9a01cc13bdccf439..16d16ef6dcacafe0219b060e125217e31be907fe 100644 (file)
@@ -1,3 +1,16 @@
+2020-01-24  Pedro Alves  <palves@redhat.com>
+
+       PR gdb/25410
+       * thread.c (scoped_restore_current_thread::restore): Use
+       switch_to_inferior_no_thread.
+       * exec.c: Include "progspace-and-thread.h".
+       (add_target_sections, remove_target_sections):
+       scoped_restore_current_pspace_and_thread instead of
+       scoped_restore_current_thread.
+       * infrun.c (handle_vfork_child_exec_or_exit): Assign the pspace
+       and aspace to the inferior before calling clone_program_space.
+       Remove stale comment.
+
 2020-01-24  Christian Biesinger  <cbiesinger@google.com>
 
        * arm-nbsd-nat.c (arm_nbsd_nat_target::fetch_registers): Rename to...
This page took 0.028536 seconds and 4 git commands to generate.