Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Shaheed <srhaque@theiet.org>
To: gdb@sourceware.org
Subject: 64 bit convenience variables?
Date: Thu, 13 Oct 2011 21:21:00 -0000	[thread overview]
Message-ID: <5215280.X7AKtnCpMn@shahhaqu-w500.cisco.com> (raw)

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


             reply	other threads:[~2011-10-13 21:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-13 21:21 Shaheed [this message]
2011-10-13 21:27 ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5215280.X7AKtnCpMn@shahhaqu-w500.cisco.com \
    --to=srhaque@theiet.org \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox