From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22764 invoked by alias); 14 Jun 2005 20:21:44 -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 22704 invoked by uid 22791); 14 Jun 2005 20:21:34 -0000 Received: from ext-ch1gw-8.online-age.net (HELO ext-ch1gw-8.online-age.net) (64.37.194.16) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 14 Jun 2005 20:21:34 +0000 Received: from int-ch1gw-2.online-age.net (int-ch1gw-2 [3.159.232.66]) by ext-ch1gw-8.online-age.net (8.12.11/8.12.11/20050527-JWF) with ESMTP id j5EKKxeJ022782; Tue, 14 Jun 2005 16:20:59 -0400 Received: from uswaumsxb1medge.am.med.ge.com (localhost [127.0.0.1]) by int-ch1gw-2.online-age.net (8.12.9/8.12.3/990426-RLH) with ESMTP id j5EKKvGY007452; Tue, 14 Jun 2005 16:20:58 -0400 (EDT) Received: from uswaumsxb3medge.am.med.ge.com (uswaumsxb3medge.med.ge.com [3.57.24.74]) by uswaumsxb1medge.am.med.ge.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id M8VZWWF7; Tue, 14 Jun 2005 15:20:57 -0500 Received: from gsao.gso.med.ge.com (uswaucs03 [3.57.24.237]) by uswaumsxb3medge.am.med.ge.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id M8FB8HDF; Tue, 14 Jun 2005 15:20:57 -0500 Received: from godzilla (IDENT:12539@godzilla [3.70.204.208]) by gsao.gso.med.ge.com (8.12.10+Sun/8.12.10) with ESMTP id j5EKLkmk015754; Tue, 14 Jun 2005 15:21:46 -0500 (CDT) Date: Tue, 14 Jun 2005 20:21:00 -0000 From: Rich Coe To: Daniel Jacobowitz Cc: gdb@sources.redhat.com Subject: Re: gdb x86_64 ERESTARTNOHAND Message-ID: <20050614151927.328e1a4c@godzilla> In-Reply-To: <20050614143252.GA3288@nevyn.them.org> References: <20050614085425.6717c34b@godzilla> <20050614143252.GA3288@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2005-06/txt/msg00140.txt.bz2 when running 32bit apps on a 64bit system, doesn't gdb use i386-linux-tdep ? On Tue, 14 Jun 2005 10:32:52 -0400 Daniel Jacobowitz wrote: > 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 > -- Rich Coe richard.coe@med.ge.com General Electric Healthcare Technologies Global Software Platforms, Computer Technology Team