Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/gpl3/gdb/bin/gdbserver Add build glue (does not link)
details: https://anonhg.NetBSD.org/src/rev/e7f79bcbda40
branches: trunk
changeset: 939042:e7f79bcbda40
user: christos <christos%NetBSD.org@localhost>
date: Wed Sep 23 23:36:59 2020 +0000
description:
Add build glue (does not link)
diffstat:
external/gpl3/gdb/bin/gdbserver/Makefile | 61 ++
external/gpl3/gdb/bin/gdbserver/arch/x86_64/config.h | 513 +++++++++++++++++++
2 files changed, 574 insertions(+), 0 deletions(-)
diffs (truncated from 582 to 300 lines):
diff -r a297e21b535a -r e7f79bcbda40 external/gpl3/gdb/bin/gdbserver/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/bin/gdbserver/Makefile Wed Sep 23 23:36:59 2020 +0000
@@ -0,0 +1,61 @@
+# $NetBSD: Makefile,v 1.1 2020/09/23 23:36:59 christos Exp $
+
+NOCTF=
+NOMAN=
+.include <bsd.own.mk>
+.include "../Makefile.inc"
+
+PROG= gdbserver
+
+SERVER_SRCS= server.cc
+NETBSD_SRCS= netbsd-low.cc fork-child.cc fork-inferior.c netbsd-nat.c
+ARCH_SRCS= netbsd-${MACHINE}-low.cc ${MACHINE}.c
+SRCS= ${SERVER_SRCS} ${NETBSD_SRCS} ${ARCH_SRCS}
+CPPFLAGS+= -I${.CURDIR} \
+ -I${.CURDIR}/arch/${GDB_MACHINE_ARCH} \
+ -I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib \
+ -I${DIST}/gdb \
+ -I${DIST}/gdbserver \
+ -I${DIST}/gdbsupport \
+ -I${DIST}/gdb/regformats \
+ -I${DIST}/gdb/config \
+ -I${DIST}/gnulib/import \
+ -I${DIST} \
+ -I${.CURDIR}/../../lib/libgdbsupport/arch/${GDB_MACHINE_ARCH} \
+ -I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH} \
+ -I${.CURDIR}/../../lib/libgnulib/arch/${GDB_MACHINE_ARCH}/gnulib/import \
+ -I${DIST}/include \
+ ${GCPPFLAGS:M-D*}
+
+.include "../../Makefile.inc"
+.include <bsd.info.mk>
+
+LIBGDB!= cd ${.CURDIR}/../../lib/libgdb && ${PRINTOBJDIR}
+LIBBFD!= cd ${.CURDIR}/../../lib/libbfd && ${PRINTOBJDIR}
+LIBGNULIBDIR!= cd ${.CURDIR}/../../lib/libgnulib && ${PRINTOBJDIR}
+LIBGDBSUPPORTDIR!= cd ${.CURDIR}/../../lib/libgdbsupport && ${PRINTOBJDIR}
+LIBIBERTYDIR!= cd ${.CURDIR}/../../lib/libiberty && ${PRINTOBJDIR}
+
+LDADD+= -L${LIBGDB} -lgdb \
+ -L${LIBGDBSUPPORTDIR} -lgdbsupport \
+ -L${LIBGNULIBDIR} -lgnulib \
+ -L${LIBBFD} -lbfd \
+ -L${LIBIBERTYDIR} -liberty \
+ -lintl -lz
+
+DPADD+= ${LIBGDB}/libgdb.a \
+ ${LIBGDBSUPPORTDIR}/libgdbsupport.a \
+ ${LIBGNULIBDIR}/libgnulib.a \
+ ${LIBBFD}/libbfd.a \
+ ${LIBIBERTYDIR}/libiberty.a \
+ ${LIBINTL} ${LIBZ}
+
+.include <bsd.prog.mk>
+
+# Force c++
+CWARNFLAGS.clang+= -Wno-deprecated
+HOST_CC:= ${HOST_CXX}
+CC:= ${CXX}
+CFLAGS:= ${CXXFLAGS} -std=gnu++11 -Wno-error=stack-protector -pthread
+
+.PATH: ${DIST}/gdbserver ${DIST}/gdb/nat ${DIST}/gdb/arch
diff -r a297e21b535a -r e7f79bcbda40 external/gpl3/gdb/bin/gdbserver/arch/x86_64/config.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/gpl3/gdb/bin/gdbserver/arch/x86_64/config.h Wed Sep 23 23:36:59 2020 +0000
@@ -0,0 +1,513 @@
+/* This file is automatically generated. DO NOT EDIT! */
+/* Generated from: NetBSD: mknative-gdb,v 1.12 2020/09/17 16:54:31 christos Exp */
+/* Generated from: NetBSD: mknative.common,v 1.16 2018/04/15 15:13:37 christos Exp */
+
+/* config.h. Generated from config.in by configure. */
+/* config.in. Generated from configure.ac by autoheader. */
+
+/* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
+ systems. This function is required for `alloca.c' support on those systems.
+ */
+/* #undef CRAY_STACKSEG_END */
+
+/* Define to 1 if std::thread works. */
+#define CXX_STD_THREAD 1
+
+/* Define to 1 if using `alloca.c'. */
+/* #undef C_ALLOCA */
+
+/* Define to 1 if translation of program messages to the user's native
+ language is requested. */
+#define ENABLE_NLS 1
+
+/* Define if self-testing features should be enabled */
+#define GDB_SELF_TEST 1
+
+/* Define to 1 if you have `alloca', as a function or macro. */
+#define HAVE_ALLOCA 1
+
+/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
+ */
+/* #undef HAVE_ALLOCA_H */
+
+/* Define to 1 if you have the <arpa/inet.h> header file. */
+#define HAVE_ARPA_INET_H 1
+
+/* define if the compiler supports basic C++11 syntax */
+#define HAVE_CXX11 1
+
+/* Define to 1 if you have the declaration of `ADDR_NO_RANDOMIZE', and to 0 if
+ you don't. */
+#define HAVE_DECL_ADDR_NO_RANDOMIZE 0
+
+/* Define to 1 if you have the declaration of `asprintf', and to 0 if you
+ don't. */
+#define HAVE_DECL_ASPRINTF 1
+
+/* Define to 1 if you have the declaration of `basename(char *)', and to 0 if
+ you don't. */
+#define HAVE_DECL_BASENAME 0
+
+/* Define to 1 if you have the declaration of `ffs', and to 0 if you don't. */
+#define HAVE_DECL_FFS 1
+
+/* Define to 1 if you have the declaration of `perror', and to 0 if you don't.
+ */
+#define HAVE_DECL_PERROR 1
+
+/* Define to 1 if you have the declaration of `snprintf', and to 0 if you
+ don't. */
+#define HAVE_DECL_SNPRINTF 1
+
+/* Define to 1 if you have the declaration of `strstr', and to 0 if you don't.
+ */
+#define HAVE_DECL_STRSTR 1
+
+/* Define to 1 if you have the declaration of `strtol', and to 0 if you don't.
+ */
+#define HAVE_DECL_STRTOL 1
+
+/* Define to 1 if you have the declaration of `strtoll', and to 0 if you
+ don't. */
+#define HAVE_DECL_STRTOLL 1
+
+/* Define to 1 if you have the declaration of `strtoul', and to 0 if you
+ don't. */
+#define HAVE_DECL_STRTOUL 1
+
+/* Define to 1 if you have the declaration of `strtoull', and to 0 if you
+ don't. */
+#define HAVE_DECL_STRTOULL 1
+
+/* Define to 1 if you have the declaration of `strverscmp', and to 0 if you
+ don't. */
+#define HAVE_DECL_STRVERSCMP 0
+
+/* Define to 1 if you have the declaration of `vasprintf', and to 0 if you
+ don't. */
+#define HAVE_DECL_VASPRINTF 1
+
+/* Define to 1 if you have the declaration of `vsnprintf', and to 0 if you
+ don't. */
+#define HAVE_DECL_VSNPRINTF 1
+
+/* Define to 1 if you have the `dladdr' function. */
+/* #undef HAVE_DLADDR */
+
+/* Define to 1 if you have the <dlfcn.h> header file. */
+#define HAVE_DLFCN_H 1
+
+/* Define to 1 if the system has the type `Elf32_auxv_t'. */
+/* #undef HAVE_ELF32_AUXV_T */
+
+/* Define to 1 if the system has the type `Elf64_auxv_t'. */
+/* #undef HAVE_ELF64_AUXV_T */
+
+/* Define if <sys/procfs.h> has elf_fpregset_t. */
+/* #undef HAVE_ELF_FPREGSET_T */
+
+/* Define to 1 if you have the <fcntl.h> header file. */
+#define HAVE_FCNTL_H 1
+
+/* Define to 1 if you have the `fdwalk' function. */
+/* #undef HAVE_FDWALK */
+
+/* Define to 1 if you have the `fork' function. */
+#define HAVE_FORK 1
+
+/* Define if <sys/procfs.h> has fpregset_t. */
+/* #undef HAVE_FPREGSET_T */
+
+/* Define to 1 if you have the `getauxval' function. */
+/* #undef HAVE_GETAUXVAL */
+
+/* Define to 1 if you have the `getpagesize' function. */
+#define HAVE_GETPAGESIZE 1
+
+/* Define to 1 if you have the `getrlimit' function. */
+#define HAVE_GETRLIMIT 1
+
+/* Define to 1 if you have the `getrusage' function. */
+#define HAVE_GETRUSAGE 1
+
+/* Define if <sys/procfs.h> has gregset_t. */
+/* #undef HAVE_GREGSET_T */
+
+/* Define to 1 if you have the <inttypes.h> header file. */
+#define HAVE_INTTYPES_H 1
+
+/* Define to 1 if your system has the kinfo_getfile function. */
+/* #undef HAVE_KINFO_GETFILE */
+
+/* Define if you have <langinfo.h> and nl_langinfo(CODESET). */
+#define HAVE_LANGINFO_CODESET 1
+
+/* Define to 1 if you have the `dl' library (-ldl). */
+/* #undef HAVE_LIBDL */
+
+/* Define if you have the ipt library. */
+/* #undef HAVE_LIBIPT */
+
+/* Define if the target supports branch tracing. */
+/* #undef HAVE_LINUX_BTRACE */
+
+/* Define to 1 if you have the <linux/elf.h> header file. */
+/* #undef HAVE_LINUX_ELF_H */
+
+/* Define to 1 if you have the <linux/perf_event.h> header file. */
+/* #undef HAVE_LINUX_PERF_EVENT_H */
+
+/* Define if the target supports register sets. */
+/* #undef HAVE_LINUX_REGSETS */
+
+/* Define if the target supports PTRACE_PEEKUSR for register access. */
+/* #undef HAVE_LINUX_USRREGS */
+
+/* Define to 1 if you have the <locale.h> header file. */
+#define HAVE_LOCALE_H 1
+
+/* Define to 1 if the system has the type `long long'. */
+#define HAVE_LONG_LONG 1
+
+/* Define if <thread_db.h> has lwpid_t. */
+/* #undef HAVE_LWPID_T */
+
+/* Define to 1 if you have the <memory.h> header file. */
+#define HAVE_MEMORY_H 1
+
+/* Define to 1 if you have a working `mmap' system call. */
+#define HAVE_MMAP 1
+
+/* Define to 1 if you have the <netdb.h> header file. */
+#define HAVE_NETDB_H 1
+
+/* Define to 1 if you have the <netinet/in.h> header file. */
+#define HAVE_NETINET_IN_H 1
+
+/* Define to 1 if you have the <netinet/tcp.h> header file. */
+#define HAVE_NETINET_TCP_H 1
+
+/* Define if you support the personality syscall. */
+/* #undef HAVE_PERSONALITY */
+
+/* Define to 1 if you have the `pipe' function. */
+#define HAVE_PIPE 1
+
+/* Define to 1 if you have the `pipe2' function. */
+#define HAVE_PIPE2 1
+
+/* Define to 1 if you have the `poll' function. */
+#define HAVE_POLL 1
+
+/* Define to 1 if you have the <poll.h> header file. */
+#define HAVE_POLL_H 1
+
+/* Define to 1 if you have the `pread' function. */
+#define HAVE_PREAD 1
+
+/* Define to 1 if you have the `pread64' function. */
+/* #undef HAVE_PREAD64 */
+
+/* Define if <sys/procfs.h> has prfpregset_t. */
+/* #undef HAVE_PRFPREGSET_T */
+
+/* Define if <sys/procfs.h> has prgregset32_t. */
+/* #undef HAVE_PRGREGSET32_T */
+
+/* Define if <sys/procfs.h> has prgregset_t. */
+/* #undef HAVE_PRGREGSET_T */
+
+/* Define to 1 if you have the <proc_service.h> header file. */
+/* #undef HAVE_PROC_SERVICE_H */
+
+/* Define if <thread_db.h> has psaddr_t. */
+/* #undef HAVE_PSADDR_T */
+
+/* Have PTHREAD_PRIO_INHERIT. */
+#define HAVE_PTHREAD_PRIO_INHERIT 1
+
+/* Define to 1 if you have the `pthread_setname_np' function. */
+#define HAVE_PTHREAD_SETNAME_NP 1
+
Home |
Main Index |
Thread Index |
Old Index