This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb x86_64 ERESTARTNOHAND


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]