This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB
- From: "H. Peter Anvin" <hpa at zytor dot com>
- To: Andrew Pinski <pinskia at gmail dot com>
- Cc: Hui Zhu <teawater at gmail dot com>, Thomas Gleixner <tglx at linutronix dot de>, Ingo Molnar <mingo at redhat dot com>, x86 at kernel dot org, eparis at redhat dot com, Andi Kleen <ak at linux dot intel dot com>, "linux-kernel at vger dot kernel dot org" <linux-kernel at vger dot kernel dot org>, "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 29 Apr 2014 22:10:15 -0700
- Subject: Re: [PATCH] Fix get ERESTARTSYS with m32 in x86_64 when debug by GDB
- Authentication-results: sourceware.org; auth=none
- References: <CANFwon0oLO+qCtpewc=BxKBOm05aBMpV=yG0CxwW1isWHfnZqw at mail dot gmail dot com> <53554846 dot 3070608 at zytor dot com> <CANFwon3zA9FMujmnN3nMiv8Zr8bU9o72XXa26dkePNq57U=JcQ at mail dot gmail dot com> <53608125 dot 2020103 at zytor dot com> <CA+=Sn1=y-smZOaD_yRxEwgu-PPaZYdQtB_RGPCA5-9wmB6=hvQ at mail dot gmail dot com>
On 04/29/2014 10:08 PM, Andrew Pinski wrote:
>
> restoring the values is hard since even the ptrace interface does not
> allow for that.
>
So that begs the ultimate question, which is: given the fact that there
is *state missing* from the state vector (this is the core of the
problem), is there a way we can add that state so that gdb will be able
to save and restore it?
-hpa