This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Fix follow-fork latent bug
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 13 Apr 2017 22:19:45 -0400
- Subject: [binutils-gdb] Fix follow-fork latent bug
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 2a00d7ce26a6ee15e3712b045c8b7932278ea23b ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: 2a00d7ce26a6ee15e3712b045c8b7932278ea23b
Fix follow-fork latent bug
A later patch in the series adds an assertion to switch_to_thread that
the resulting inferior_ptid always matches the "current_inferior()"
inferior. This exposed a latent bug in the follow-fork code, where
we're building the fork child inferior. We're switching
inferior_ptid, but not the current inferior object...
gdb/ChangeLog:
2017-04-13 Pedro Alves <palves@redhat.com>
* infrun.c (follow_fork_inferior): Also switch the current
inferior.