This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC/RFA] Remove bad pointer to long typecast in symfile.c source
- From: Pedro Alves <palves at redhat dot com>
- To: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: "'GDB Patches'" <gdb-patches at sourceware dot org>
- Date: Wed, 22 Aug 2012 17:02:22 +0100
- Subject: Re: [RFC/RFA] Remove bad pointer to long typecast in symfile.c source
- References: <50335f4d.c6bd440a.193e.2386SMTPIN_ADDED@mx.google.com>
On 08/21/2012 11:13 AM, Pierre Muller wrote:
> long type is 4 byte long, while pointer is 8 byte long
> for x86_64-w64-mingw32.
> Thus I get a warning about typecast from pointer to integer of different
> size.
>
> Anyhow, GDB internal pointers should be printed out
> using the host_address_to_string function, no?
Yes.
> 2012-08-13 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.
OK.
--
Pedro Alves