Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/3] Extended-remote follow-fork cleanups
@ 2015-05-22 18:55 Don Breazeal
  2015-05-22 18:55 ` [PATCH 2/3] Initialize last_resume_kind for remote fork child Don Breazeal
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Don Breazeal @ 2015-05-22 18:55 UTC (permalink / raw)
  To: gdb-patches

This patchset addresses a few extended-remote test failures discovered
by the buildbot and noted by Sergio in this email thread:

https://sourceware.org/ml/gdb-patches/2015-05/msg00372.html

Several of the failures were expected.  These were in
gdb.base/foll-vfork.exp and depended on exec events, which are not yet
supported for extended-remote.

I had mistakenly concluded that a couple of other failures were due
to the lack of exec event support.  One of these was due to the
remote interface printing a thread identifier instead of a process
identifier in the follow_fork verbose mode "Detaching..." messages.
The other was more serious, where a vfork child could sometimes be
(incorrectly) resumed when handling the vfork event.

The patchset addresses these three issues with the following three
patches:

Patch 1: modifies the ptids used in the verbose-mode "Detaching..."
messages in infrun.c:follow_fork_inferior to ensure that they print
"process nnn" instead of possibly "Thread nnn.nnn", so that native
and remote follow fork have the same behavior and match what the
follow fork tests expect.

Patch 2: initializes the threadinfo.last_resume_kind field for new
fork children in gdbserver/linux-low.c:handle_extended_wait.  This
prevents the event handler from incorrectly resuming the child
if the stop event that is generated when it starts is reported
before the vfork event that initiated it.

Patch 3: disables the tests in gdb.base/foll-vfork.exp that depend
on exec event support for gdbserver targets.

Tested native, native-gdbserver, and native-extended-gdbserver on
x86_64 GNU/Linux.

Thanks
--Don


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-05-28 22:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-22 18:55 [PATCH 0/3] Extended-remote follow-fork cleanups Don Breazeal
2015-05-22 18:55 ` [PATCH 2/3] Initialize last_resume_kind for remote fork child Don Breazeal
2015-05-23 12:05   ` Pedro Alves
2015-05-22 18:55 ` [PATCH 1/3] Make remote follow fork 'Detaching' message match native Don Breazeal
2015-05-23 11:18   ` Pedro Alves
2015-05-22 18:56 ` [PATCH 3/3] Disable exec-dependent follow fork tests for remote Don Breazeal
2015-05-23 12:11   ` Pedro Alves
2015-05-23 12:14     ` Pedro Alves
2015-05-28 22:12 ` [commit][PATCH 1/3] Make remote follow fork 'Detaching' message match native Don Breazeal
2015-05-28 22:13   ` [commit][PATCH 2/3] Initialize last_resume_kind for remote fork child Don Breazeal
2015-05-28 22:13   ` [commit][PATCH 3/3] Disable exec-dependent follow vfork tests for remote Don Breazeal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox