This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb x86_64 ERESTARTNOHAND
- From: Daniel Jacobowitz <drow at false dot org>
- To: Rich Coe <Richard dot Coe at med dot ge dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 14 Jun 2005 10:32:52 -0400
- Subject: Re: gdb x86_64 ERESTARTNOHAND
- References: <20050614085425.6717c34b@godzilla>
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