From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22562 invoked by alias); 13 Oct 2011 21:21:37 -0000 Received: (qmail 22548 invoked by uid 22791); 13 Oct 2011 21:21:36 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-ww0-f41.google.com (HELO mail-ww0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 13 Oct 2011 21:21:21 +0000 Received: by wwf10 with SMTP id 10so806482wwf.0 for ; Thu, 13 Oct 2011 14:21:20 -0700 (PDT) Received: by 10.227.145.195 with SMTP id e3mr1920685wbv.80.1318540880137; Thu, 13 Oct 2011 14:21:20 -0700 (PDT) Received: from shahhaqu-w500.cisco.com (78-105-149-13.zone3.bethere.co.uk. [78.105.149.13]) by mx.google.com with ESMTPS id l9sm9395608wba.5.2011.10.13.14.21.19 (version=SSLv3 cipher=OTHER); Thu, 13 Oct 2011 14:21:19 -0700 (PDT) From: Shaheed To: gdb@sourceware.org Subject: 64 bit convenience variables? Date: Thu, 13 Oct 2011 21:21:00 -0000 Message-ID: <5215280.X7AKtnCpMn@shahhaqu-w500.cisco.com> User-Agent: KMail/4.7.2 (Linux/3.0.0-12-generic; KDE/4.7.1; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" 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/msg00078.txt.bz2 Hi, I've recently been working on 64 bit images, and noticed that several of my GDB scripts malfunctioned because the convenience variables cannot store a 64 bit value (in my case, these are usually pointers). Thus: shahhaqu@shahhaqu-w500:~$ file `which gdb` /usr/bin/gdb: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped shahhaqu@shahhaqu-w500:~$ gdb GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". For bug reporting instructions, please see: . (gdb) set $foo=(void *)0x8000800080008000 warning: value truncated (gdb) p/x $foo $1 = 0x80008000 Is there any possibility that the width could be increased? Thanks, Shaheed