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 1/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

  I apologize to the person that already submitted a similar 
change, but I was unable to find it again. 
  I vaguely remember that we already discussed this once, but there
are still two <winsock.h> inlcudes in gdb HEAD.

  The patch below fixes this.
  
Pierre Muller
Pascal language support maintainer for GDB


2010-09-10  Pierre Muller  <muller@ics.u-strasbg.fr>

	* m32r-rom.c: Replace winsock.h with winsock2.h header.
	* remote-m32r-sdi.c: Replace winsock.h by winsock2.h.

Index: src/gdb/m32r-rom.c
===================================================================
RCS file: /cvs/src/src/gdb/m32r-rom.c,v
retrieving revision 1.40
diff -u -p -r1.40 m32r-rom.c
--- src/gdb/m32r-rom.c	1 Jan 2010 07:31:37 -0000	1.40
+++ src/gdb/m32r-rom.c	9 Sep 2010 16:39:58 -0000
@@ -45,7 +45,7 @@
  * All this stuff just to get my host computer's IP address!
  */
 #ifdef __MINGW32__
-#include <winsock.h>
+#include <winsock2.h>
 #else
 #include <sys/types.h>
 #include <netdb.h>		/* for hostent */
Index: src/gdb/remote-m32r-sdi.c
===================================================================
RCS file: /cvs/src/src/gdb/remote-m32r-sdi.c,v
retrieving revision 1.52
diff -u -p -r1.52 remote-m32r-sdi.c
--- src/gdb/remote-m32r-sdi.c	6 Sep 2010 13:59:02 -0000	1.52
+++ src/gdb/remote-m32r-sdi.c	9 Sep 2010 16:39:59 -0000
@@ -32,7 +32,7 @@
 #include <ctype.h>
 #include <signal.h>
 #ifdef __MINGW32__
-#include <winsock.h>
+#include <winsock2.h>
 #else
 #include <netinet/in.h>
 #endif


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