This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: 64 bit convenience variables?
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Shaheed <srhaque at theiet dot org>
- Cc: gdb at sourceware dot org
- Date: Thu, 13 Oct 2011 23:27:20 +0200
- Subject: Re: 64 bit convenience variables?
- References: <5215280.X7AKtnCpMn@shahhaqu-w500.cisco.com>
On Thu, 13 Oct 2011 23:21:17 +0200, Shaheed wrote:
> shahhaqu@shahhaqu-w500:~$ gdb
[...]
> This GDB was configured as "x86_64-linux-gnu".
[...]
> (gdb) set $foo=(void *)0x8000800080008000
> warning: value truncated
If you type:
(gdb) show architecture
The target architecture is set automatically (currently i386)
This is because you have no file loaded to set GDB architecture according to
it. You can set it manually:
(gdb) set architecture i386:x86-64
GDB can support many architectures although I agree it is more a bug the
primary target is not the default.
Regards,
Jan