From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13654 invoked by alias); 2 Aug 2012 10:00:57 -0000 Received: (qmail 13645 invoked by uid 22791); 2 Aug 2012 10:00:56 -0000 X-SWARE-Spam-Status: No, hits=-4.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_XF X-Spam-Check-By: sourceware.org Received: from mail-vb0-f41.google.com (HELO mail-vb0-f41.google.com) (209.85.212.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 02 Aug 2012 10:00:34 +0000 Received: by vbkv13 with SMTP id v13so8995152vbk.0 for ; Thu, 02 Aug 2012 03:00:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.92.70 with SMTP id ck6mr17628541vdb.16.1343901633865; Thu, 02 Aug 2012 03:00:33 -0700 (PDT) Received: by 10.220.106.204 with HTTP; Thu, 2 Aug 2012 03:00:33 -0700 (PDT) In-Reply-To: <3341505.ZtLsQODebp@qiyao.dyndns.org> References: <3341505.ZtLsQODebp@qiyao.dyndns.org> Date: Thu, 02 Aug 2012 10:00:00 -0000 Message-ID: Subject: Re: [PATCH] Fix memory-region overlapping checking From: Wei-cheng Wang To: Yao Qi Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=UTF-8 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-08/txt/msg00061.txt.bz2 Hi Yao, Let me correct my previous example. It should be (gdb) mem 0x50 0x80 ro (gdb) mem 0xffffff00 0 ro (gdb) mem 0x100 0x200 ro overlapping memory region (instread of 0x100000000) As documented in gdb manual (10.16), ``Note that upper == 0 is a special case: it is treated as the target's maximum memory address.'' Anyway, it doesn't matter the real issue. In my humble opinion, in order for that to work, it should fixed as such. Otherwise, it doesn't work even on x86_64-linux. thanks a lot, Wei-cheng