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]

Re: [RFC/RFA] Remove bad pointer to long typecast in symfile.c source


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


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