]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* symfile.c (allocate_symtab): Use host_address_to_string
authorPierre Muller <muller@sourceware.org>
Tue, 21 Aug 2012 16:05:46 +0000 (16:05 +0000)
committerPierre Muller <muller@sourceware.org>
Tue, 21 Aug 2012 16:05:46 +0000 (16:05 +0000)
function instead of cast of pointer to long which is not
compatible with x86_64-w64-mingw32 build.

gdb/ChangeLog
gdb/symfile.c

index 1af737c74822ebe2ad51f53368cbbefdc5429eb8..0b635c6256225cd9ace0cc64e38440444b6c82db 100644 (file)
@@ -1,3 +1,9 @@
+2012-08-21  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * symfile.c (allocate_symtab): Use host_address_to_string
+       function instead of cast of pointer to long which is not
+       compatible with x86_64-w64-mingw32 build.
+
 2012-08-17  Joel Brobecker  <brobecker@adacore.com>
 
        * version.in: Set version to 7.5.0.20120817-cvs.
index 01252e2964ec667ce21eea1cd77b0a8806e01339..175d61c2a8860c282f65a4d91ad0879c7649397f 100644 (file)
@@ -2889,8 +2889,8 @@ allocate_symtab (const char *filename, struct objfile *objfile)
                              last_objfile_name);
        }
       fprintf_unfiltered (gdb_stdlog,
-                         "Created symtab 0x%lx for module %s.\n",
-                         (long) symtab, filename);
+                         "Created symtab %s for module %s.\n",
+                         host_address_to_string (symtab), filename);
     }
 
   return (symtab);