Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Jim Blandy" <jimb@red-bean.com>
To: "Andreas Schwab" <schwab@suse.de>
Cc: "John Fodor" <john_fodor@mac.com>, gdb@sourceware.org
Subject: Re: gdb and multi-threaded (NPTL) programs
Date: Tue, 28 Mar 2006 09:33:00 -0000	[thread overview]
Message-ID: <8f2776cb0603241315o22cd4757kb897425cd7606219@mail.gmail.com> (raw)
In-Reply-To: <jeveu3362v.fsf@sykes.suse.de>

I think some of this discussion is missing the point.  A debugger
should let the user examine the program's behavior while disturbing it
as little as possible.  If the debugger happens to be implemented
using signals, and those signal disturb the program's behavior, then
that's a flaw.

The call to sem_wait should probably be wrapped in a loop that checks
for EINTR, but that's beside the point.  Running the program under the
debugger shouldn't even change the number of times the thread goes
around the EINTR loop.

So I'm agreeing with Daniel, I guess: it's a kernel bug.  But it
sounds to me like Daniel is saying that you need to find some change
to the non-debugging behavior that would also fix the debugging
behavior, which I don't agree with.  In theory, you should change the
debugging behavior and have no effect on the syscall's interface to
the code that calls it.


  reply	other threads:[~2006-03-24 21:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-24 20:24 John Fodor
2006-03-24 20:27 ` Daniel Jacobowitz
2006-03-24 20:52   ` John Fodor
2006-03-24 21:07     ` Daniel Jacobowitz
2006-03-24 20:40 ` Andreas Schwab
2006-03-24 20:45   ` Eric Desjardins
2006-03-24 20:47     ` Andreas Schwab
2006-03-24 21:15   ` John Fodor
2006-03-24 21:21     ` Andreas Schwab
2006-03-28  9:33       ` Jim Blandy [this message]
2006-03-28 10:43         ` Daniel Jacobowitz

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=8f2776cb0603241315o22cd4757kb897425cd7606219@mail.gmail.com \
    --to=jimb@red-bean.com \
    --cc=gdb@sourceware.org \
    --cc=john_fodor@mac.com \
    --cc=schwab@suse.de \
    /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