diff options
author | Daniel Jacobowitz <drow@false.org> | 2006-07-23 03:52:15 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2006-07-23 03:52:15 +0000 |
commit | b80864fbe54e0280d6cd040b0ede0568dd66d90f (patch) | |
tree | cd09718cd52c0dd8bdfe7e6cf2bfad8217dfa674 /gdb/gdbserver/configure.ac | |
parent | 66a79c16a65742d14f5991b596541276245d24ba (diff) | |
download | gdb-b80864fbe54e0280d6cd040b0ede0568dd66d90f.zip gdb-b80864fbe54e0280d6cd040b0ede0568dd66d90f.tar.gz gdb-b80864fbe54e0280d6cd040b0ede0568dd66d90f.tar.bz2 |
gdb/
* configure.tgt: Build gdbserver for Cygwin and mingw32.
gdb/gdbserver/
* configure.ac: Check for more headers which are missing on
Windows. Automatically supply -lwsock32 and USE_WIN32API.
* configure.srv: Add Cygwin and mingw32.
* remote-utils.c: Don't include headers unconditionally which
are missing on mingw32. Include <winsock.h> for mingw32.
(remote_open): Adjust for mingw32 support. Flush
standard error after writing to it.
(remote_close, putpkt_binary, input_interrupt, block_async_io)
(unblock_async_io, enable_async_io, disable_async_io)
(readchar, getpkt): Update for Winsock support.
(prepare_resume_reply): Expect a protocol signal number.
* server.c: Disable <sys/wait.h> on mingw32.
(start_inferior): Adjust for mingw32 support. Flush
standard error after writing to it.
(attach_inferior): Likewise. Use protocol signal
numbers.
(main): Skip 'D' packet on mingw32. Use protocol signal numbers
and names.
* win32-i386-low.c: New file.
* Makefile.in (XM_CLIBS): Set.
(gdbserver, gdbreplay): Use $(INTERNAL_CFLAGS).
(win32-i386-low.o): New dependency rule.
* linux-low.c (linux_wait): Use target signal numbers.
* target.h (struct target_ops): Doc fix.
* server.h (target_signal_to_name): New prototype.
* gdbreplay.c: Don't include headers unconditionally which
are missing on mingw32. Include <winsock.h> for mingw32.
(remote_close, remote_open): Adjust for Winsock support.
* configure, config.in: Regenerated.
Diffstat (limited to 'gdb/gdbserver/configure.ac')
-rw-r--r-- | gdb/gdbserver/configure.ac | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/gdbserver/configure.ac b/gdb/gdbserver/configure.ac index a952af5..e43b28a 100644 --- a/gdb/gdbserver/configure.ac +++ b/gdb/gdbserver/configure.ac @@ -38,7 +38,9 @@ AC_HEADER_STDC AC_CHECK_HEADERS(sgtty.h termio.h termios.h sys/reg.h string.h dnl proc_service.h sys/procfs.h thread_db.h linux/elf.h dnl - stdlib.h unistd.h) + stdlib.h unistd.h dnl + terminal.h sys/ioctl.h netinet/in.h sys/socket.h netdb.h dnl + netinet/tcp.h arpa/inet.h sys/wait.h) AC_CHECK_DECLS(strerror) @@ -48,6 +50,15 @@ AC_CHECK_TYPES(socklen_t, [], [], ]) . ${srcdir}/configure.srv +if test "${srv_mingw}" = "yes"; then + LIBS="$LIBS -lwsock32" + AC_DEFINE(USE_WIN32API, 1, + [Define if we should use the Windows API, instead of the + POSIX API. On Windows, we use the Windows API when + building for MinGW, but the POSIX API when building + for Cygwin.]) +fi + if test "${srv_linux_usrregs}" = "yes"; then AC_DEFINE(HAVE_LINUX_USRREGS, 1, [Define if the target supports PTRACE_PEEKUSR for register ] |