From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32441 invoked by alias); 23 May 2012 05:29:24 -0000 Received: (qmail 32430 invoked by uid 22791); 23 May 2012 05:29:23 -0000 X-SWARE-Spam-Status: No, hits=-5.8 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SARE_UNSUB22,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 23 May 2012 05:29:08 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q4N5T4DQ011485 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 23 May 2012 01:29:04 -0400 Received: from host2.jankratochvil.net (ovpn-116-78.ams2.redhat.com [10.36.116.78]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q4N5T0k8022150 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Wed, 23 May 2012 01:29:02 -0400 Date: Wed, 23 May 2012 05:29:00 -0000 From: Jan Kratochvil To: "Maciej W. Rozycki" Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: [patch] Re: Regression for gdbserver [Re: [PATCH] Linux/gdbserver: Fix memory read ptrace fallback issues] Message-ID: <20120523052859.GA23755@host2.jankratochvil.net> References: <4FB67E6D.2040406@redhat.com> <4FB6ACEF.2030600@redhat.com> <20120522080321.GA18378@host2.jankratochvil.net> <20120522193521.GA26213@host2.jankratochvil.net> <20120522204235.GA31756@host2.jankratochvil.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00861.txt.bz2 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