From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10163 invoked by alias); 26 Oct 2003 17:39:39 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 10156 invoked from network); 26 Oct 2003 17:39:38 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 26 Oct 2003 17:39:38 -0000 Received: from drow by nevyn.them.org with local (Exim 4.24 #1 (Debian)) id 1ADora-00028t-8m for ; Sun, 26 Oct 2003 12:39:38 -0500 Date: Sun, 26 Oct 2003 17:39:00 -0000 From: Daniel Jacobowitz To: gdb-patches@sources.redhat.com Subject: Re: [rfa/doc/threads] thread breakpoints and system calls Message-ID: <20031026173937.GA3152@nevyn.them.org> Mail-Followup-To: gdb-patches@sources.redhat.com References: <200310261459.h9QExPlc022980@duracef.shout.net> <1659-Sun26Oct2003193033+0200-eliz@elta.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1659-Sun26Oct2003193033+0200-eliz@elta.co.il> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-10/txt/msg00772.txt.bz2 On Sun, Oct 26, 2003 at 07:30:33PM +0200, Eli Zaretskii wrote: > > Date: Sun, 26 Oct 2003 09:59:25 -0500 > > From: Michael Elizabeth Chastain > > > > Looking for approval from a thread guy such as Daniel J for content, > > and Eli Z for syntax. Also approved - pretty good! > Approved, with one gotcha: the GNU project standards discourage the > use of ``illegal'' for anything other than actions that break the law. > So I would rewrite the following sentence: > > > + It is legal behavior for a system call to return early, so @value{GDBN} > > + does not cause your program to behave illegally. > > like this: > > It is perfectly okay for a system call to return early, so @value{GDBN} > does not cause your problem to behave erratically. > > I would also suggest to add that the early return is due to a signal > (SIGTRAP, right?) caused by the breaking breakpoint. This will help > programmers who know that a system call can return early due to a > signal to understand better what's going on. Well, it's actually due to a SIGSTOP sent by GDB to the thread. The thread never receives the SIGSTOP (GDB cancels it later) but it causes the system call to exit early. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer