* 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.
This commit is contained in:
Pierre Muller 2012-08-21 15:43:46 +00:00
parent 3c65f4f9ff
commit b3dbbd6f40
2 changed files with 8 additions and 2 deletions

View 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.

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