64 bit convenience variables?
Jan Kratochvil
jan.kratochvil@redhat.com
Thu Oct 13 21:27:00 GMT 2011
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
More information about the Gdb
mailing list