This is the mail archive of the gdb-patches@sourceware.org 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: [patch] Re: Regression for gdbserver [Re: [PATCH] Linux/gdbserver: Fix memory read ptrace fallback issues]


On Wed, 23 May 2012 01:34:05 +0200, Maciej W. Rozycki wrote:
> On Tue, 22 May 2012, Jan Kratochvil wrote:
> > 	[RFC patch] non-release srctrees: --enable-targets=all & 64bit & -lmcheck
> > 	http://sourceware.org/ml/gdb-patches/2012-05/msg00714.html
[...]
>  Hmm, it wouldn't have triggered at the compilation time probably anyway.  
> I have switched to --enable-targets=all already, based on some past 
> experience.

I was trying to figure out why the problem is reproducible for me and not for
you.  I understand --enable-targets=all does not affect it but as the patch
already makes development vs. user build difference we could add even more
tweaks like special CFLAGS into the development build.  (Assuming special
CFLAGS can reproduce the bug.)


> > I find always more clear to calculate everything as START ADDRESS and ONE BYTE
> > AFTER THE LAST ADDRESS till the very last moment.
> 
>  That indeed, or START & SIZE in bytes.

The key is to never use any SIZE because then after you modify START
everything breaks down.


Regards,
Jan


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