Messages in this thread | | | Date | Wed, 30 Apr 2014 09:35:00 -0700 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB |
| |
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
| |