Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* 64 bit convenience variables?
@ 2011-10-13 21:21 Shaheed
  2011-10-13 21:27 ` Jan Kratochvil
  0 siblings, 1 reply; 2+ messages in thread
From: Shaheed @ 2011-10-13 21:21 UTC (permalink / raw)
  To: gdb

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 <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:
<http://bugs.launchpad.net/gdb-linaro/>.
(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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-13 21:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-13 21:21 64 bit convenience variables? Shaheed
2011-10-13 21:27 ` Jan Kratochvil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox