This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 64 bit convenience variables?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]