Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB

"H. Peter Anvin" <[email protected]>
Newsgroups gmane.linux.kernel,gmane.comp.gdb.devel
Message-ID <[email protected]>
On 04/30/2014 06:35 AM, Mark Kettenis wrote:
> 
> If (and only if) the goal of that TS_COMPAT flag solely is to trigger
> the error code sign-extension in arch/x86/asm/syscall.h:syscall_get_error(),
> we could work around to problem in GDB by checking "orig_ax" to see if
> we're continuing an interrupted system call and sign extend the error
> code in the real "eax" register if we are.
> 

Well... this "if and only if" clause is false, although it might work
specifically in this context.  I need to do a writeup about this... I
should try to do that today.

	-hpa
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.