This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Small fix for bfd/elf.c
- From: Howard Chu <hyc at symas dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 22 Nov 2007 23:09:10 -0800
- Subject: Small fix for bfd/elf.c
Tripped over this while trying to compile on Windows x64.
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
--- gdb-6.7.1/bfd/elf.c 2007-08-25 06:20:41.000000000 -0700
+++ gdb-6.7.1/bfd/elf.c.N 2007-11-22 22:09:28.884623800 -0800
@@ -8418,6 +8418,8 @@
{
#if BFD_HOST_64BIT_LONG
sprintf (buf, "%016lx", value);
+#elif BFD_HOST_64BIT_LONG_LONG
+ sprintf (buf, "%016llx", value);
#else
sprintf (buf, "%08lx%08lx", _bfd_int64_high (value),
_bfd_int64_low (value));
@@ -8446,6 +8448,8 @@
{
#if BFD_HOST_64BIT_LONG
fprintf ((FILE *) stream, "%016lx", value);
+#elif BFD_HOST_64BIT_LONG_LONG
+ fprintf ((FILE *) stream, "%016llx", value);
#else
fprintf ((FILE *) stream, "%08lx%08lx",
_bfd_int64_high (value), _bfd_int64_low (value));