* symfile.c (allocate_symtab): Use host_address_to_string
authorPierre Muller <muller@sourceware.org>
Tue, 21 Aug 2012 15:43:46 +0000 (15:43 +0000)
committerPierre Muller <muller@sourceware.org>
Tue, 21 Aug 2012 15:43:46 +0000 (15:43 +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 825b751a4b5bf5b0271558bd7621cc528a00630c..bef6d8cbf28c6dc7f19f2d5d6e3f3ab8ff386452 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-19  Andrew Pinski  <apinski@cavium.com>
 
        * mips-tdep.c (is_octeon): New function.
index da068a1b80935ab69790d60ffe882691185dfaaf..d070e48d42bc54b80356e09cd854bab96754e6ea 100644 (file)
@@ -2883,8 +2883,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);