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] |
Hi Rolf,
On Friday 18 July 2008 18:32:32, Dr. Rolf Jansen wrote:The latest server.c rev 1.76 does produce warnings when compiled with the MinGW tools:
...
MinGW defines alloca() in <malloc.h> and memmem() is not built-in. I think this should eventually be addressed in the configure script, however, as a quick fix, I added at the top of server.c:
#if USE_WIN32API #include <malloc.h>
This bit be done with...
#if HAVE_MALLOC_H #include <malloc.h> #endif
... instead. We're already doing that in utils.c.
void *memmem (const void *haystack_start, size_t haystack_len, const void *needle_start, size_t needle_len); #endif
Hmmm, shouldn't we be picking up memmem's definition from gnulib's string.h,
since we're using memmem from gnulib?
In order to resolve the linking errors, the definition of the respective variables must be moved out of the conditional block (#ifdef SIGTTOU ... #endif), because they are used also within non- conditional code in remote-utils.c and in server.c.Ooops. Yes, it should move out of the #if block. It was just an oversight. No need to add the SIGTTOU checks around the --disable-packet handling.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |