From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23033 invoked by alias); 14 Jun 2005 14:33:01 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23003 invoked by uid 22791); 14 Jun 2005 14:32:54 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 14 Jun 2005 14:32:54 +0000 Received: from drow by nevyn.them.org with local (Exim 4.50) id 1DiCTE-0000sN-O6; Tue, 14 Jun 2005 10:32:52 -0400 Date: Tue, 14 Jun 2005 14:33:00 -0000 From: Daniel Jacobowitz To: Rich Coe Cc: gdb@sources.redhat.com Subject: Re: gdb x86_64 ERESTARTNOHAND Message-ID: <20050614143252.GA3288@nevyn.them.org> Mail-Followup-To: Rich Coe , gdb@sources.redhat.com References: <20050614085425.6717c34b@godzilla> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050614085425.6717c34b@godzilla> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-06/txt/msg00130.txt.bz2 On Tue, Jun 14, 2005 at 08:54:25AM -0500, Rich Coe wrote: > Run the program below in gdb on x86_64, compiled either -m32 or 64 bit, > stop the execution with control-C > call a function, in this case doNothing(), but sleep(1) works as well > continue > gdb passes errno 514 to the program. 514=ERESTARTNOHAND > > I see that strace prints out information about ERESTARTNOHAND, so it knows > about it. I was wondering if gdb should know about this, is this an > x86_64 kernel error, or what? > > Even though strace knows about ERESTARTNOHAND on i386, and prints it, > gdb does not print or cause the program to receive this errno on a 32bit kernel. amd64-linux-tdep.c requires a write_pc method, just like the one in i386-linux-tdep.c. Nice catch. -- Daniel Jacobowitz CodeSourcery, LLC