From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9346 invoked by alias); 3 Sep 2009 12:21:51 -0000 Received: (qmail 9329 invoked by uid 22791); 3 Sep 2009 12:21:49 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from smtp12.hushmail.com (HELO smtp12.hushmail.com) (65.39.178.135) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Sep 2009 12:21:44 +0000 Received: from smtp12.hushmail.com (localhost.localdomain [127.0.0.1]) by smtp12.hushmail.com (Postfix) with SMTP id 0BE6FC00B8 for ; Thu, 3 Sep 2009 12:21:42 +0000 (UTC) Received: from smtp.hushmail.com (w2.hushmail.com [65.39.178.96]) by smtp12.hushmail.com (Postfix) with ESMTP for ; Thu, 3 Sep 2009 12:21:41 +0000 (UTC) Received: by smtp.hushmail.com (Postfix, from userid 99) id 4BD7DB8043; Thu, 3 Sep 2009 12:21:41 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 03 Sep 2009 12:21:00 -0000 To: gdb@sourceware.org Subject: 64bit pointer From: freindlyuser@hushmail.com Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="UTF-8" Message-Id: <20090903122141.4BD7DB8043@smtp.hushmail.com> 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: 2009-09/txt/msg00034.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I didn't know if this was a bug or if I was just doing something wrong. Basically when I try to use * to get the value pointed to by something it gives me 32 bits of the pointer which is actually a 64bit address. (gdb) x/s *($rdi+0x8) 0x4210a9b7:
(gdb) x/x $rdi+0x8 0x3a9b4210b7a4: 0x00003a9b4210a9b7 (gdb) x/s 0x00003a9b4210a9b7 0x3a9b4210a9b7: "The string it points to" In the above I wanted to read the string pointed to by the pointer at $rdi+0x8 Should this be happening? Should I be using a different command or something different to the asterisk? Is there a work around where I can read the data in 0x00003a9b4210a9b7 without having to manually copy and paste (ie: in the commands that are executed on a breakpoint). Thank you. -----BEGIN PGP SIGNATURE----- Charset: UTF8 Version: Hush 3.0 Note: This signature can be verified at https://www.hushtools.com/verify wpwEAQMCAAYFAkqftNQACgkQWX1/rrecYT2pBgP/RVbdltSzvOihdHAKfpweEjXQ7U1T f2xyz8uRhyPZQ2n1w2nA/IyU79LyB3sIUcoZ+CkxX0VPh34W8Kw00XfWYq85C3dSW9vm ibLw6AIE5CVcvz39wX/68s4qEYS/BdpetltS3sEeKswV7ylCjNajtFwu2h5WIxsVhdop kkXuBfA= =l5hi -----END PGP SIGNATURE-----