From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30496 invoked by alias); 13 Oct 2011 21:27:42 -0000 Received: (qmail 30487 invoked by uid 22791); 13 Oct 2011 21:27:42 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS 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; Thu, 13 Oct 2011 21:27:23 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9DLRNqM018264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 13 Oct 2011 17:27:23 -0400 Received: from host1.jankratochvil.net (ovpn-116-16.ams2.redhat.com [10.36.116.16]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p9DLRLpx028250 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 13 Oct 2011 17:27:23 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p9DLRKCn011947; Thu, 13 Oct 2011 23:27:20 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p9DLRKt9011942; Thu, 13 Oct 2011 23:27:20 +0200 Date: Thu, 13 Oct 2011 21:27:00 -0000 From: Jan Kratochvil To: Shaheed Cc: gdb@sourceware.org Subject: Re: 64 bit convenience variables? Message-ID: <20111013212720.GA11779@host1.jankratochvil.net> References: <5215280.X7AKtnCpMn@shahhaqu-w500.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5215280.X7AKtnCpMn@shahhaqu-w500.cisco.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00079.txt.bz2 On Thu, 13 Oct 2011 23:21:17 +0200, Shaheed wrote: > shahhaqu@shahhaqu-w500:~$ gdb [...] > This GDB was configured as "x86_64-linux-gnu". [...] > (gdb) set $foo=(void *)0x8000800080008000 > warning: value truncated If you type: (gdb) show architecture The target architecture is set automatically (currently i386) This is because you have no file loaded to set GDB architecture according to it. You can set it manually: (gdb) set architecture i386:x86-64 GDB can support many architectures although I agree it is more a bug the primary target is not the default. Regards, Jan