gdb x86_64 ERESTARTNOHAND
Daniel Jacobowitz
drow@false.org
Tue Jun 14 14:33:00 GMT 2005
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
More information about the Gdb
mailing list