This is the mail archive of the gdb-patches@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]

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));

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