* Linux ptrace handling of SIGSTOP
@ 2005-06-08 18:33 Kris Warkentin
2005-06-08 18:36 ` Daniel Jacobowitz
0 siblings, 1 reply; 2+ messages in thread
From: Kris Warkentin @ 2005-06-08 18:33 UTC (permalink / raw)
To: GDB
The Linux documentation for ptrace(PTRACE_CONT, ...., signal) claims
that signal will be passed unless it is a SIGSTOP. I hit a process that
I was debugging with a SIGSTOP, gdb of course stops claiming that the
process got a SIGSTOP. I continue and gdb again says that the process
was hit with a SIGSTOP. If I continue a second time, the process
actually continues.
I was debugging child_resume and observed that both times the ptrace was
being called with SIGSTOP but the second time the process actually
resumes. This implies to me that the ptrace documentation is not
completely correct because it seems that the first SIGSTOP is being
delivered.
Am I missing something? The reason that I ask is that we're not
currently handling SIGSTOP properly in QNX so I'm trying to find out
what the expected behaviour should be. Based on the docs, I would have
thought that the continue would just cause it to resume without further
interruption.
cheers,
Kris
--
Stay up-to-date on all the QNX news! Register at
http://www.qnx.com/news/forms/newsletter.html to
receive our newsletter.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Linux ptrace handling of SIGSTOP
2005-06-08 18:33 Linux ptrace handling of SIGSTOP Kris Warkentin
@ 2005-06-08 18:36 ` Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2005-06-08 18:36 UTC (permalink / raw)
To: Kris Warkentin; +Cc: GDB
On Wed, Jun 08, 2005 at 02:34:48PM -0400, Kris Warkentin wrote:
> The Linux documentation for ptrace(PTRACE_CONT, ...., signal) claims
> that signal will be passed unless it is a SIGSTOP. I hit a process that
> I was debugging with a SIGSTOP, gdb of course stops claiming that the
> process got a SIGSTOP. I continue and gdb again says that the process
> was hit with a SIGSTOP. If I continue a second time, the process
> actually continues.
>
> I was debugging child_resume and observed that both times the ptrace was
> being called with SIGSTOP but the second time the process actually
> resumes. This implies to me that the ptrace documentation is not
> completely correct because it seems that the first SIGSTOP is being
> delivered.
>
> Am I missing something? The reason that I ask is that we're not
> currently handling SIGSTOP properly in QNX so I'm trying to find out
> what the expected behaviour should be. Based on the docs, I would have
> thought that the continue would just cause it to resume without further
> interruption.
I don't know - you'd have to ask the kernel developers, i.e. I'm
punting your question to Roland.
--
Daniel Jacobowitz
CodeSourcery, LLC
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-08 18:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-06-08 18:33 Linux ptrace handling of SIGSTOP Kris Warkentin
2005-06-08 18:36 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox