lkml.org 
[lkml]   [2014]   [Apr]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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



\
 
 \ /
  Last update: 2014-04-30 20:21    [W:0.140 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site