[PATCH 0/8] Some vfork related fixes

Andrew Burgess aburgess@redhat.com
Thu Jun 22 13:17:20 GMT 2023


While reviewing this patch:

  https://inbox.sourceware.org/gdb-patches/20230612074927.424961-2-christina.schimpe@intel.com/

I spotted a block of code which I wasn't certain the meaning of.  So I
started looking into the history of the code, and started testing it a
little, and ran into 3 vfork related bugs, which this series fixes.

Patches #1, #6, and #7 are all about updating an existing test to test
vfork a little more,

Patches #2, #3, and #5 are the three fixes,

Patch #4 is the original refactoring patch referenced above,

And patch #8 adds some extra debug output.

---

Andrew Burgess (7):
  gdb: catch more errors in gdb.base/foll-vfork.exp
  gdb: don't restart vfork parent while waiting for child to finish
  gdb: fix an issue with vfork in non-stop mode
  gdb: don't resume vfork parent while child is still running
  gdb/testsuite: expand gdb.base/foll-vfork.exp
  gdb/testsuite: remove use of sleep from gdb.base/foll-vfork.exp
  gdb: additional debug output in infrun.c and linux-nat.c

Mihails Strasuns (1):
  gdb, infrun: refactor part of `proceed` into separate function

 gdb/infrun.c                          | 180 +++++---
 gdb/linux-nat.c                       |  32 +-
 gdb/testsuite/gdb.base/foll-vfork.exp | 588 ++++++++++++--------------
 3 files changed, 403 insertions(+), 397 deletions(-)


base-commit: 07a88d7f2121630956997bc5edd495af40d4494f
-- 
2.25.4



More information about the Gdb-patches mailing list