This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] Fix mingw32 gdbserver build failure
- From: "Pierre Muller" <pierre dot muller at ics-cnrs dot unistra dot fr>
- To: <gdb-patches at sourceware dot org>
- Cc: "'Pedro Alves'" <pedro at codesourcery dot com>, "'Stan Shebs'" <stan at codesourcery dot com>
- Date: Tue, 15 Jun 2010 12:06:01 +0200
- Subject: [RFA] Fix mingw32 gdbserver build failure
gdbserver compilation fails for mingw32.
This was because of int64_t use in emit_const
of revision 1.70 dated 2010-06-14.
Rather than simply adding a single line patch as obvious,
I would prefer that we use HAVE_STDINT_H
in all occurences of include <stdint.h>
Pierre Muller
ChangeLog entry:
2010-06-15 Pierre Muller <muller@ics.u-strasbg.fr>
* server.h: Add missing "stdint.h" include with guard.
thread-db.c: Add inlcude guard for "stdint.h" header.
Index: server.h
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/server.h,v
retrieving revision 1.70
diff -u -p -r1.70 server.h
--- server.h 14 Jun 2010 22:16:09 -0000 1.70
+++ server.h 15 Jun 2010 09:56:57 -0000
@@ -29,6 +29,9 @@
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
+#ifdef HAVE_STDINT_H
+#include <stdint.h>
+#endif
#ifdef HAVE_ERRNO_H
#include <errno.h>
#endif
Index: thread-db.c
===================================================================
RCS file: /cvs/src/src/gdb/gdbserver/thread-db.c,v
retrieving revision 1.36
diff -u -p -r1.36 thread-db.c
--- thread-db.c 3 May 2010 18:13:36 -0000 1.36
+++ thread-db.c 15 Jun 2010 09:56:57 -0000
@@ -34,7 +34,9 @@ static int thread_db_use_events;
#include <dlfcn.h>
#endif
+#ifdef HAVE_STDINT_H
#include <stdint.h>
+#endif
#include <limits.h>
#include <ctype.h>