Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: John Fodor <john_fodor@mac.com>
To: Andreas Schwab <schwab@suse.de>
Cc: gdb@sourceware.org
Subject: Re: gdb and multi-threaded (NPTL) programs
Date: Fri, 24 Mar 2006 21:15:00 -0000	[thread overview]
Message-ID: <44245BC3.8010706@mac.com> (raw)
In-Reply-To: <je4q1n4mmp.fsf@sykes.suse.de>

Andreas Schwab wrote:
> John Fodor <john_fodor@mac.com> writes:
> 
> 
>>Hmmm... so people who use POSIX threads have to put every syscall into a 
>>loop, ignoring EINTR?
> 
> 
> Every library call that is allowed to return with EINTR must be handled
> appropriately.  sem_wait is specified as being able to return with EINTR.
> If your program can't handle that it has a bug.
> 
> Andreas.
> 

I guess you're right. But remember this is an EINTR because we are 
single-stepping. Are yoiu saying that one should retry all syscalls on 
every EINTR? Thanks.


  parent reply	other threads:[~2006-03-24 20:52 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 [this message]
2006-03-24 21:21     ` Andreas Schwab
2006-03-28  9:33       ` Jim Blandy
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=44245BC3.8010706@mac.com \
    --to=john_fodor@mac.com \
    --cc=gdb@sourceware.org \
    --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