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]

[RFA 0/5] New patches to support --enable-targets=all for mingw64


  I tried to compile GDB with
--enable-targets=all for x86_64-w64-mingw32
target.
  As 'long' type is 4-byte while pointer type is 8-byte,
this target is quite sensitive to so 'dirty' code
lying around like casting 'long' or 'unsigned long' to pointers...

  I had to fix several sources to be able to 
successfully compile GDB with those configuration options.

1) Replace remaining #include <winsock.h> by #inlcude <winsock2.h>
in remote-m32r-sdi.c and m32r-rom.c

2) Add intermediate typecast to uintptr_t to avoid
compilation warnings.
in alpha-mdebug-tdep.c

3) Change some types from 'long' to 'CORE_ADDRESS',
if they could carry pointers.
 in coffread.c

4) Use host_address_to_string to display host pointers.
in hppa-tdep.c, monitor.c and xtensa-tdep.c

5) solib-som.c is a tdep file (it is listed in ALL_TARGET_OBS)
but it tries to get the hpux system version trough
a direct system call, which probably leads to wrong results
on other systems too.


Pierre Muller
Pascal language support maintainer for GDB


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