Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Kris Warkentin <kewarken@qnx.com>
Cc: GDB <gdb@sources.redhat.com>
Subject: Re: Linux ptrace handling of SIGSTOP
Date: Wed, 08 Jun 2005 18:36:00 -0000	[thread overview]
Message-ID: <20050608183636.GA30101@nevyn.them.org> (raw)
In-Reply-To: <42A73A48.1080002@qnx.com>

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


      reply	other threads:[~2005-06-08 18:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-08 18:33 Kris Warkentin
2005-06-08 18:36 ` Daniel Jacobowitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050608183636.GA30101@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb@sources.redhat.com \
    --cc=kewarken@qnx.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox