From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27105 invoked by alias); 26 Jun 2013 16:06:14 -0000 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 Received: (qmail 27057 invoked by uid 89); 26 Jun 2013 16:06:10 -0000 X-Spam-SWARE-Status: No, score=-8.1 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 26 Jun 2013 16:06:09 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r5QG66Zw027185 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 26 Jun 2013 12:06:07 -0400 Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r5QG650k024167; Wed, 26 Jun 2013 12:06:06 -0400 Message-ID: <51CB116D.7060009@redhat.com> Date: Wed, 26 Jun 2013 16:07:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: Udma Catalin-Dan-B32721 CC: "gdb-patches@sourceware.org" Subject: Re: gdb 7.6: Fix info mem command for 32 bits host/64 bits target References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-06/txt/msg00778.txt.bz2 On 06/26/2013 04:07 PM, Udma Catalin-Dan-B32721 wrote: > Hi, > I found an issue with the "info mem" command when running gdb on 32 bits host for 64 bits target architecture. > "info mem" command truncates the target address to 32 bits, like in the example below: > > (gdb) set architecture powerpc:common64 > The target architecture is assumed to be powerpc:common64 > (gdb) mem 0x100000000 0x200000000 rw > (gdb) info mem > Using user-defined memory regions. > Num Enb Low Addr High Addr Attrs > 1 y 0x0000000000000000 0x0000000000000000 rw nocache > > Please find below the proposed patch. Please let me know your comments. Thanks! The (LONGEST) casts look unnecessary, as hex_string_custom already takes LONGEST. This needs a ChangeLog entry. See . Could you send one? In order to backport to the 7.6 branch, we'll need a bugzilla entry filed, reporting the bug. Could you do that? That will be used to record the bug fix in . -- Pedro Alves