This is the mail archive of the
mailing list for the GDB project.
64 bit convenience variables?
- From: Shaheed <srhaque at theiet dot org>
- To: gdb at sourceware dot org
- Date: Thu, 13 Oct 2011 22:21:17 +0100
- Subject: 64 bit convenience variables?
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
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 <http://gnu.org/licenses/gpl.html>
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?