This is the mail archive of the
mailing list for the GDB project.
Re: FYI: fix 2 tests when glibc debuginfo is installed
On Fri, 14 Oct 2011 23:19:09 +0200, Pedro Alves wrote:
> On Friday 14 October 2011 20:37:05, Jan Kratochvil wrote:
> > thanks; although these testcases are broken anyway, they should be updated for
> > Linux kernels 3.1.x which always keep inferior stopped if it was stopped
> > during PTRACE_ATTACH; probably to XFAIL older kernels.
> Urgh. Even if you SIGCONT the process before PTRACE_DETACH?
Yes. But I do not think it is problem, one can SIGCONT it safely after
PTRACE_DETACH. Just it may be (T)-stopped for a moment but why not.
The opposite - the upstream 2.6.x kernel state - was IMO worse, it was resumed
and one could not safely keep it stopped.
> Why was the behavior changed incompatibly if we're having the all new
> PTRACE_SEIZE? Do you have a lkml reference to the change?
I do not have anything specific, AFAIK it just happened as part of all the
changes incl. PTRACE_SEIZE. I have updated the behavior into two new *-3x.c
tests with Oleg Nesterov ~review/check/approval in: