Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2018-05-05 01:59:44 -0400
committerEugene Tarassov2018-05-05 01:59:44 -0400
commit50ac4620524a569c2dc196fa00f61d954687701f (patch)
tree3731d0bffcd2895db37db2f5cdff27cbc9f706f2
parentf3ed99b69a0b3b8284201975947b5b0ad477a188 (diff)
downloadorg.eclipse.tcf.agent-50ac4620524a569c2dc196fa00f61d954687701f.tar.gz
org.eclipse.tcf.agent-50ac4620524a569c2dc196fa00f61d954687701f.tar.xz
org.eclipse.tcf.agent-50ac4620524a569c2dc196fa00f61d954687701f.zip
TCF Core: added default configuration file tcf/framework/config.h
-rw-r--r--agent/tcf/config.h351
-rw-r--r--agent/tcf/framework/config.h369
-rw-r--r--examples/daytime/tcf/config.h16
-rw-r--r--server/tcf/config.h17
-rw-r--r--tests/mem-leaks/tcf/config.h3
-rw-r--r--tests/test-dwarf/tcf/config.h4
6 files changed, 378 insertions, 382 deletions
diff --git a/agent/tcf/config.h b/agent/tcf/config.h
index 4b66aebc..2353d2ec 100644
--- a/agent/tcf/config.h
+++ b/agent/tcf/config.h
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2016-2017 Wind River Systems, Inc. and others.
+ * Copyright (c) 20018 Xilinx, Inc. and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v1.0 which accompany this distribution.
@@ -8,362 +8,17 @@
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
* You may elect to redistribute this code under either of these licenses.
- *
- * Contributors:
- * Wind River Systems - initial API and implementation
*******************************************************************************/
/*
* This file contains "define" statements that control agent configuration.
- * SERVICE_* definitions control which service implementations are included into the agent.
+ * This version of configuration file uses default settings from tcf/framework/config.h
*/
#ifndef D_config
#define D_config
#include <tcf/framework/mdep.h>
-
-#if defined(_WIN32) || defined(__CYGWIN__)
-# define TARGET_WINDOWS 1
-# define TARGET_VXWORKS 0
-# define TARGET_UNIX 0
-# if defined(_MSC_VER)
-# define TARGET_MSVC 1
-# else
-# define TARGET_MSVC 0
-# endif
-# define TARGET_BSD 0
-# define TARGET_SYMBIAN 0
-# define TARGET_ANDROID 0
-#elif defined(_WRS_KERNEL)
-# define TARGET_WINDOWS 0
-# define TARGET_VXWORKS 1
-# define TARGET_UNIX 0
-# define TARGET_MSVC 0
-# define TARGET_BSD 0
-# define TARGET_SYMBIAN 0
-# define TARGET_ANDROID 0
-#elif defined(__SYMBIAN32__)
-# define TARGET_WINDOWS 0
-# define TARGET_VXWORKS 0
-# define TARGET_UNIX 0
-# define TARGET_MSVC 0
-# define TARGET_BSD 0
-# define TARGET_SYMBIAN 1
-# define TARGET_ANDROID 0
-#else
-# define TARGET_WINDOWS 0
-# define TARGET_VXWORKS 0
-# define TARGET_UNIX 1
-# define TARGET_MSVC 0
-# if defined(__FreeBSD__) || defined(__NetBSD__)
-# define TARGET_BSD 1
-# else
-# define TARGET_BSD 0
-# endif
-# define TARGET_SYMBIAN 0
-# if defined(ANDROID)
-# define TARGET_ANDROID 1
-# else
-# define TARGET_ANDROID 0
-# endif
-#endif
-
-#if !defined(SERVICE_Locator)
-#define SERVICE_Locator (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS || TARGET_SYMBIAN)
-#endif
-#if !defined(SERVICE_RunControl)
-#define SERVICE_RunControl ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
-#endif
-#if !defined(SERVICE_Breakpoints)
-#define SERVICE_Breakpoints ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
-#endif
-#if !defined(SERVICE_Memory)
-#define SERVICE_Memory ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
-#endif
-#if !defined(SERVICE_Registers)
-#define SERVICE_Registers ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
-#endif
-#if !defined(SERVICE_Processes)
-#define SERVICE_Processes (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
-#endif
-#if !defined(SERVICE_MemoryMap)
-#define SERVICE_MemoryMap ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
-#endif
-#if !defined(SERVICE_StackTrace)
-#define SERVICE_StackTrace ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
-#endif
-#if !defined(SERVICE_Symbols)
-#define SERVICE_Symbols (TARGET_UNIX || TARGET_MSVC)
-#endif
-#if !defined(SERVICE_LineNumbers)
-#define SERVICE_LineNumbers (TARGET_UNIX || TARGET_MSVC)
-#endif
-#if !defined(SERVICE_FileSystem)
-#define SERVICE_FileSystem (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
-#endif
-#if !defined(SERVICE_SysMonitor)
-#define SERVICE_SysMonitor ((TARGET_UNIX && !TARGET_BSD) || TARGET_WINDOWS)
-#endif
-#if !defined(SERVICE_Expressions)
-#define SERVICE_Expressions ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
-#endif
-#if !defined(SERVICE_Streams)
-#define SERVICE_Streams (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS || TARGET_SYMBIAN)
-#endif
-#if !defined(SERVICE_PathMap)
-#define SERVICE_PathMap 1
-#endif
-#if !defined(SERVICE_ContextQuery)
-#define SERVICE_ContextQuery 1
-#endif
-#if !defined(SERVICE_Terminals)
-#define SERVICE_Terminals (TARGET_UNIX || TARGET_WINDOWS)
-#endif
-#if !defined(SERVICE_DPrintf)
-#define SERVICE_DPrintf (SERVICE_Expressions && SERVICE_Streams)
-#endif
-#if !defined(SERVICE_Disassembly)
-#define SERVICE_Disassembly (SERVICE_Memory)
-#endif
-#if !defined(SERVICE_Profiler)
-#define SERVICE_Profiler (SERVICE_RunControl)
-#endif
-#if !defined(SERVICE_PortForward)
-#define SERVICE_PortForward 0
-#endif
-#if !defined(SERVICE_PortServer)
-#define SERVICE_PortServer 0
-#endif
-#if !defined(ENABLE_PortForwardProxy)
-#define ENABLE_PortForwardProxy SERVICE_PortServer
-#endif
-
-#if !defined(ENABLE_Plugins)
-# if TARGET_UNIX && defined(PATH_Plugins)
-# define ENABLE_Plugins 1
-# else
-# define ENABLE_Plugins 0
-# endif
-#endif
-
-#if !defined(ENABLE_ZeroCopy)
-#define ENABLE_ZeroCopy 1
-#endif
-
-#if !defined(ENABLE_Splice)
-# if ENABLE_ZeroCopy
-# include <fcntl.h>
-# if defined(SPLICE_F_MOVE)
-# define ENABLE_Splice 1
-# else
-# define ENABLE_Splice 0
-# endif
-# else
-# define ENABLE_Splice 0
-# endif
-#endif
-
-#if !defined(ENABLE_Trace)
-# define ENABLE_Trace 1
-#endif
-
-#if !defined(ENABLE_Discovery)
-# define ENABLE_Discovery 1
-#endif
-
-#if !defined(ENABLE_Cmdline)
-# define ENABLE_Cmdline 1
-#endif
-
-#if !defined(ENABLE_ContextProxy)
-# define ENABLE_ContextProxy 0
-#endif
-
-#if !defined(ENABLE_ContextMux)
-# define ENABLE_ContextMux 0
-#endif
-
-#if !defined(ENABLE_DebugContext)
-# define ENABLE_DebugContext (ENABLE_ContextProxy || ENABLE_ContextMux || SERVICE_RunControl || SERVICE_Breakpoints || \
- SERVICE_Memory || SERVICE_Registers || SERVICE_StackTrace || SERVICE_Disassembly)
-#endif
-
-#if !defined(ENABLE_SymbolsProxy)
-# define ENABLE_SymbolsProxy (ENABLE_DebugContext && (TARGET_VXWORKS || TARGET_UNIX || TARGET_WINDOWS))
-#endif
-
-#if !defined(ENABLE_LineNumbersProxy)
-# define ENABLE_LineNumbersProxy (ENABLE_DebugContext && (TARGET_VXWORKS || TARGET_UNIX || TARGET_WINDOWS))
-#endif
-
-#if !defined(ENABLE_MemoryMap)
-# define ENABLE_MemoryMap ((ENABLE_DebugContext && ENABLE_ContextProxy) || SERVICE_MemoryMap)
-#endif
-
-#if !ENABLE_DebugContext
-# undef SERVICE_Symbols
-# define SERVICE_Symbols 0
-#endif
-
-#if !ENABLE_DebugContext
-# undef SERVICE_LineNumbers
-# define SERVICE_LineNumbers 0
-#endif
-
-#if !defined(ENABLE_Symbols)
-# define ENABLE_Symbols (ENABLE_SymbolsProxy || SERVICE_Symbols)
-#endif
-
-#if !defined(ENABLE_LineNumbers)
-# define ENABLE_LineNumbers (ENABLE_LineNumbersProxy || SERVICE_LineNumbers)
-#endif
-
-#if !defined(ENABLE_Expressions)
-# define ENABLE_Expressions (SERVICE_Expressions)
-#endif
-
-#if !defined(ENABLE_ELF)
-# define ENABLE_ELF (TARGET_UNIX && (SERVICE_Symbols || SERVICE_LineNumbers))
-#endif
-
-#if !defined(ENABLE_PE)
-# define ENABLE_PE (TARGET_MSVC && (SERVICE_Symbols || SERVICE_LineNumbers))
-#endif
-
-#if !defined(ENABLE_SymbolsMux)
-#define ENABLE_SymbolsMux (SERVICE_Symbols && (ENABLE_ELF || ENABLE_PE))
-#endif
-
-#if !defined(ENABLE_LineNumbersMux)
-#define ENABLE_LineNumbersMux (SERVICE_LineNumbers && (ENABLE_ELF || ENABLE_PE))
-#endif
-
-#if !defined(ENABLE_SSL)
-# if defined(PATH_OpenSSL)
-# define ENABLE_SSL 1
-# elif (TARGET_UNIX) && !defined(__APPLE__)
-# define ENABLE_SSL 1
-# else
-# define ENABLE_SSL 0
-# endif
-#endif
-
-#if !defined(ENABLE_RCBP_TEST)
-# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
-/* TODO: debug services are not fully implemented on BSD */
-# define ENABLE_RCBP_TEST 0
-# else
-# define ENABLE_RCBP_TEST (!ENABLE_ContextProxy && (SERVICE_RunControl && SERVICE_Breakpoints))
-# endif
-#endif
-
-#if !defined(ENABLE_AIO)
-# if !defined(_POSIX_ASYNCHRONOUS_IO)
-# define ENABLE_AIO 0
-# elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
-/* On BSD AIO sends signal SIGSYS - bad system call */
-# define ENABLE_AIO 0
-# elif defined(__linux__)
-/* Linux implementation of POSIX AIO found to be inefficient */
-# define ENABLE_AIO 0
-# elif defined(__sun__)
-/* Solaris has _POSIX_ASYNCHRONOUS_IO, but SIGEV_THREAD does not seem to return */
-/* It should work from Solaris Express 6/06 and newer but fails if compiled on Solaris 8 */
-# define ENABLE_AIO 0
-# elif TARGET_SYMBIAN
-/* Symbian impl (OpenC) not desired either */
-# define ENABLE_AIO 0
-# else
-# define ENABLE_AIO 1
-# endif
-#endif
-
-#if !defined(ENABLE_STREAM_MACROS)
-/* Enabling stream macros increases code size about 5%, and increases speed about 7% */
-# define ENABLE_STREAM_MACROS 0
-#endif
-
-#if !defined(ENABLE_LUA)
-# if defined(PATH_LUA)
-# define ENABLE_LUA 1
-# else
-# define ENABLE_LUA 0
-# endif
-#endif
-
-#if !defined(ENABLE_Unix_Domain)
-/* Using UNIX:/path/to/socket for local TCP communication */
-# define ENABLE_Unix_Domain (TARGET_UNIX || TARGET_SYMBIAN)
-#endif
-
-#if !defined(ENABLE_ContextMemoryProperties)
-# define ENABLE_ContextMemoryProperties (TARGET_WINDOWS)
-#endif
-
-#if !defined(ENABLE_ContextExtraProperties)
-# define ENABLE_ContextExtraProperties (TARGET_WINDOWS)
-#endif
-
-#if !defined(ENABLE_ContextStateProperties)
-# define ENABLE_ContextStateProperties 0
-#endif
-
-#if !defined(ENABLE_ContextBreakpointCapabilities)
-# define ENABLE_ContextBreakpointCapabilities (TARGET_WINDOWS && ENABLE_DebugContext && !ENABLE_ContextProxy)
-#endif
-
-#if !defined(ENABLE_ExtendedBreakpointStatus)
-# define ENABLE_ExtendedBreakpointStatus (TARGET_WINDOWS && ENABLE_DebugContext && !ENABLE_ContextProxy)
-#endif
-
-#if !defined(ENABLE_ExtendedMemoryErrorReports)
-# define ENABLE_ExtendedMemoryErrorReports 1
-#endif
-
-#if !defined(ENABLE_MemoryAccessModes)
-# define ENABLE_MemoryAccessModes 0
-#endif
-
-#if !defined(ENABLE_ExternalStackcrawl)
-# define ENABLE_ExternalStackcrawl 0
-#endif
-
-#if !defined(ENABLE_StackCrawlMux)
-# define ENABLE_StackCrawlMux 0
-#endif
-
-#if !defined(ENABLE_ContextISA)
-# define ENABLE_ContextISA SERVICE_Disassembly
-#endif
-
-#if !defined(ENABLE_ProfilerSST)
-# define ENABLE_ProfilerSST (SERVICE_Profiler && SERVICE_RunControl && SERVICE_StackTrace && ENABLE_DebugContext)
-#endif
-
-#if !defined(ENABLE_ContextIdHashTable)
-# define ENABLE_ContextIdHashTable (ENABLE_DebugContext && !ENABLE_ContextProxy && TARGET_WINDOWS)
-#endif
-
-#if !defined(ENABLE_GdbRemoteSerialProtocol)
-# define ENABLE_GdbRemoteSerialProtocol (ENABLE_DebugContext && SERVICE_RunControl && SERVICE_Breakpoints && SERVICE_Registers)
-#endif
-
-#if !defined(ENABLE_AllStopMode)
-# define ENABLE_AllStopMode 0
-#endif
-
-#if SERVICE_PortServer || SERVICE_PortForward
-# undef SERVICE_Streams
-# define SERVICE_Streams 1
-#endif
-
-#if !defined(ENABLE_LibWebSockets)
-# define ENABLE_LibWebSockets 0
-#endif
-
-#if !defined(ENABLE_HttpServer)
-# define ENABLE_HttpServer 0
-#endif
+#include <tcf/framework/config.h>
#endif /* D_config */
diff --git a/agent/tcf/framework/config.h b/agent/tcf/framework/config.h
new file mode 100644
index 00000000..bca78b03
--- /dev/null
+++ b/agent/tcf/framework/config.h
@@ -0,0 +1,369 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2018 Wind River Systems, Inc. and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * and Eclipse Distribution License v1.0 which accompany this distribution.
+ * The Eclipse Public License is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ * and the Eclipse Distribution License is available at
+ * http://www.eclipse.org/org/documents/edl-v10.php.
+ * You may elect to redistribute this code under either of these licenses.
+ *
+ * Contributors:
+ * Wind River Systems - initial API and implementation
+ *******************************************************************************/
+
+/*
+ * This file contains "define" statements that control agent configuration.
+ * SERVICE_* definitions control which service implementations are included into the agent.
+ */
+
+#ifndef D_framework_config
+#define D_framework_config
+
+#include <tcf/framework/mdep.h>
+
+#if defined(_WIN32) || defined(__CYGWIN__)
+# define TARGET_WINDOWS 1
+# define TARGET_VXWORKS 0
+# define TARGET_UNIX 0
+# if defined(_MSC_VER)
+# define TARGET_MSVC 1
+# else
+# define TARGET_MSVC 0
+# endif
+# define TARGET_BSD 0
+# define TARGET_SYMBIAN 0
+# define TARGET_ANDROID 0
+#elif defined(_WRS_KERNEL)
+# define TARGET_WINDOWS 0
+# define TARGET_VXWORKS 1
+# define TARGET_UNIX 0
+# define TARGET_MSVC 0
+# define TARGET_BSD 0
+# define TARGET_SYMBIAN 0
+# define TARGET_ANDROID 0
+#elif defined(__SYMBIAN32__)
+# define TARGET_WINDOWS 0
+# define TARGET_VXWORKS 0
+# define TARGET_UNIX 0
+# define TARGET_MSVC 0
+# define TARGET_BSD 0
+# define TARGET_SYMBIAN 1
+# define TARGET_ANDROID 0
+#else
+# define TARGET_WINDOWS 0
+# define TARGET_VXWORKS 0
+# define TARGET_UNIX 1
+# define TARGET_MSVC 0
+# if defined(__FreeBSD__) || defined(__NetBSD__)
+# define TARGET_BSD 1
+# else
+# define TARGET_BSD 0
+# endif
+# define TARGET_SYMBIAN 0
+# if defined(ANDROID)
+# define TARGET_ANDROID 1
+# else
+# define TARGET_ANDROID 0
+# endif
+#endif
+
+#if !defined(SERVICE_Locator)
+#define SERVICE_Locator (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS || TARGET_SYMBIAN)
+#endif
+#if !defined(SERVICE_RunControl)
+#define SERVICE_RunControl ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
+#endif
+#if !defined(SERVICE_Breakpoints)
+#define SERVICE_Breakpoints ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
+#endif
+#if !defined(SERVICE_Memory)
+#define SERVICE_Memory ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
+#endif
+#if !defined(SERVICE_Registers)
+#define SERVICE_Registers ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
+#endif
+#if !defined(SERVICE_Processes)
+#define SERVICE_Processes (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
+#endif
+#if !defined(SERVICE_MemoryMap)
+#define SERVICE_MemoryMap ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
+#endif
+#if !defined(SERVICE_StackTrace)
+#define SERVICE_StackTrace ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
+#endif
+#if !defined(SERVICE_Symbols)
+#define SERVICE_Symbols (TARGET_UNIX || TARGET_MSVC)
+#endif
+#if !defined(SERVICE_LineNumbers)
+#define SERVICE_LineNumbers (TARGET_UNIX || TARGET_MSVC)
+#endif
+#if !defined(SERVICE_FileSystem)
+#define SERVICE_FileSystem (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS)
+#endif
+#if !defined(SERVICE_SysMonitor)
+#define SERVICE_SysMonitor ((TARGET_UNIX && !TARGET_BSD) || TARGET_WINDOWS)
+#endif
+#if !defined(SERVICE_Expressions)
+#define SERVICE_Expressions ((TARGET_UNIX && !TARGET_ANDROID) || TARGET_VXWORKS || TARGET_WINDOWS)
+#endif
+#if !defined(SERVICE_Streams)
+#define SERVICE_Streams (TARGET_UNIX || TARGET_VXWORKS || TARGET_WINDOWS || TARGET_SYMBIAN)
+#endif
+#if !defined(SERVICE_PathMap)
+#define SERVICE_PathMap 1
+#endif
+#if !defined(SERVICE_ContextQuery)
+#define SERVICE_ContextQuery 1
+#endif
+#if !defined(SERVICE_Terminals)
+#define SERVICE_Terminals (TARGET_UNIX || TARGET_WINDOWS)
+#endif
+#if !defined(SERVICE_DPrintf)
+#define SERVICE_DPrintf (SERVICE_Expressions && SERVICE_Streams)
+#endif
+#if !defined(SERVICE_Disassembly)
+#define SERVICE_Disassembly (SERVICE_Memory)
+#endif
+#if !defined(SERVICE_Profiler)
+#define SERVICE_Profiler (SERVICE_RunControl)
+#endif
+#if !defined(SERVICE_PortForward)
+#define SERVICE_PortForward 0
+#endif
+#if !defined(SERVICE_PortServer)
+#define SERVICE_PortServer 0
+#endif
+#if !defined(ENABLE_PortForwardProxy)
+#define ENABLE_PortForwardProxy SERVICE_PortServer
+#endif
+
+#if !defined(ENABLE_Plugins)
+# if TARGET_UNIX && defined(PATH_Plugins)
+# define ENABLE_Plugins 1
+# else
+# define ENABLE_Plugins 0
+# endif
+#endif
+
+#if !defined(ENABLE_ZeroCopy)
+#define ENABLE_ZeroCopy 1
+#endif
+
+#if !defined(ENABLE_Splice)
+# if ENABLE_ZeroCopy
+# include <fcntl.h>
+# if defined(SPLICE_F_MOVE)
+# define ENABLE_Splice 1
+# else
+# define ENABLE_Splice 0
+# endif
+# else
+# define ENABLE_Splice 0
+# endif
+#endif
+
+#if !defined(ENABLE_Trace)
+# define ENABLE_Trace 1
+#endif
+
+#if !defined(ENABLE_Discovery)
+# define ENABLE_Discovery 1
+#endif
+
+#if !defined(ENABLE_Cmdline)
+# define ENABLE_Cmdline 1
+#endif
+
+#if !defined(ENABLE_ContextProxy)
+# define ENABLE_ContextProxy 0
+#endif
+
+#if !defined(ENABLE_ContextMux)
+# define ENABLE_ContextMux 0
+#endif
+
+#if !defined(ENABLE_DebugContext)
+# define ENABLE_DebugContext (ENABLE_ContextProxy || ENABLE_ContextMux || SERVICE_RunControl || SERVICE_Breakpoints || \
+ SERVICE_Memory || SERVICE_Registers || SERVICE_StackTrace || SERVICE_Disassembly)
+#endif
+
+#if !defined(ENABLE_SymbolsProxy)
+# define ENABLE_SymbolsProxy (ENABLE_DebugContext && (TARGET_VXWORKS || TARGET_UNIX || TARGET_WINDOWS))
+#endif
+
+#if !defined(ENABLE_LineNumbersProxy)
+# define ENABLE_LineNumbersProxy (ENABLE_DebugContext && (TARGET_VXWORKS || TARGET_UNIX || TARGET_WINDOWS))
+#endif
+
+#if !defined(ENABLE_MemoryMap)
+# define ENABLE_MemoryMap ((ENABLE_DebugContext && ENABLE_ContextProxy) || SERVICE_MemoryMap)
+#endif
+
+#if !ENABLE_DebugContext
+# undef SERVICE_Symbols
+# define SERVICE_Symbols 0
+#endif
+
+#if !ENABLE_DebugContext
+# undef SERVICE_LineNumbers
+# define SERVICE_LineNumbers 0
+#endif
+
+#if !defined(ENABLE_Symbols)
+# define ENABLE_Symbols (ENABLE_SymbolsProxy || SERVICE_Symbols)
+#endif
+
+#if !defined(ENABLE_LineNumbers)
+# define ENABLE_LineNumbers (ENABLE_LineNumbersProxy || SERVICE_LineNumbers)
+#endif
+
+#if !defined(ENABLE_Expressions)
+# define ENABLE_Expressions (SERVICE_Expressions)
+#endif
+
+#if !defined(ENABLE_ELF)
+# define ENABLE_ELF (TARGET_UNIX && (SERVICE_Symbols || SERVICE_LineNumbers))
+#endif
+
+#if !defined(ENABLE_PE)
+# define ENABLE_PE (TARGET_MSVC && (SERVICE_Symbols || SERVICE_LineNumbers))
+#endif
+
+#if !defined(ENABLE_SymbolsMux)
+#define ENABLE_SymbolsMux (SERVICE_Symbols && (ENABLE_ELF || ENABLE_PE))
+#endif
+
+#if !defined(ENABLE_LineNumbersMux)
+#define ENABLE_LineNumbersMux (SERVICE_LineNumbers && (ENABLE_ELF || ENABLE_PE))
+#endif
+
+#if !defined(ENABLE_SSL)
+# if defined(PATH_OpenSSL)
+# define ENABLE_SSL 1
+# elif (TARGET_UNIX) && !defined(__APPLE__)
+# define ENABLE_SSL 1
+# else
+# define ENABLE_SSL 0
+# endif
+#endif
+
+#if !defined(ENABLE_RCBP_TEST)
+# if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+/* TODO: debug services are not fully implemented on BSD */
+# define ENABLE_RCBP_TEST 0
+# else
+# define ENABLE_RCBP_TEST (!ENABLE_ContextProxy && (SERVICE_RunControl && SERVICE_Breakpoints))
+# endif
+#endif
+
+#if !defined(ENABLE_AIO)
+# if !defined(_POSIX_ASYNCHRONOUS_IO)
+# define ENABLE_AIO 0
+# elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
+/* On BSD AIO sends signal SIGSYS - bad system call */
+# define ENABLE_AIO 0
+# elif defined(__linux__)
+/* Linux implementation of POSIX AIO found to be inefficient */
+# define ENABLE_AIO 0
+# elif defined(__sun__)
+/* Solaris has _POSIX_ASYNCHRONOUS_IO, but SIGEV_THREAD does not seem to return */
+/* It should work from Solaris Express 6/06 and newer but fails if compiled on Solaris 8 */
+# define ENABLE_AIO 0
+# elif TARGET_SYMBIAN
+/* Symbian impl (OpenC) not desired either */
+# define ENABLE_AIO 0
+# else
+# define ENABLE_AIO 1
+# endif
+#endif
+
+#if !defined(ENABLE_STREAM_MACROS)
+/* Enabling stream macros increases code size about 5%, and increases speed about 7% */
+# define ENABLE_STREAM_MACROS 0
+#endif
+
+#if !defined(ENABLE_LUA)
+# if defined(PATH_LUA)
+# define ENABLE_LUA 1
+# else
+# define ENABLE_LUA 0
+# endif
+#endif
+
+#if !defined(ENABLE_Unix_Domain)
+/* Using UNIX:/path/to/socket for local TCP communication */
+# define ENABLE_Unix_Domain (TARGET_UNIX || TARGET_SYMBIAN)
+#endif
+
+#if !defined(ENABLE_ContextMemoryProperties)
+# define ENABLE_ContextMemoryProperties (TARGET_WINDOWS)
+#endif
+
+#if !defined(ENABLE_ContextExtraProperties)
+# define ENABLE_ContextExtraProperties (TARGET_WINDOWS)
+#endif
+
+#if !defined(ENABLE_ContextStateProperties)
+# define ENABLE_ContextStateProperties 0
+#endif
+
+#if !defined(ENABLE_ContextBreakpointCapabilities)
+# define ENABLE_ContextBreakpointCapabilities (TARGET_WINDOWS && ENABLE_DebugContext && !ENABLE_ContextProxy)
+#endif
+
+#if !defined(ENABLE_ExtendedBreakpointStatus)
+# define ENABLE_ExtendedBreakpointStatus (TARGET_WINDOWS && ENABLE_DebugContext && !ENABLE_ContextProxy)
+#endif
+
+#if !defined(ENABLE_ExtendedMemoryErrorReports)
+# define ENABLE_ExtendedMemoryErrorReports 1
+#endif
+
+#if !defined(ENABLE_MemoryAccessModes)
+# define ENABLE_MemoryAccessModes 0
+#endif
+
+#if !defined(ENABLE_ExternalStackcrawl)
+# define ENABLE_ExternalStackcrawl 0
+#endif
+
+#if !defined(ENABLE_StackCrawlMux)
+# define ENABLE_StackCrawlMux 0
+#endif
+
+#if !defined(ENABLE_ContextISA)
+# define ENABLE_ContextISA SERVICE_Disassembly
+#endif
+
+#if !defined(ENABLE_ProfilerSST)
+# define ENABLE_ProfilerSST (SERVICE_Profiler && SERVICE_RunControl && SERVICE_StackTrace && ENABLE_DebugContext)
+#endif
+
+#if !defined(ENABLE_ContextIdHashTable)
+# define ENABLE_ContextIdHashTable (ENABLE_DebugContext && !ENABLE_ContextProxy && TARGET_WINDOWS)
+#endif
+
+#if !defined(ENABLE_GdbRemoteSerialProtocol)
+# define ENABLE_GdbRemoteSerialProtocol (ENABLE_DebugContext && SERVICE_RunControl && SERVICE_Breakpoints && SERVICE_Registers)
+#endif
+
+#if !defined(ENABLE_AllStopMode)
+# define ENABLE_AllStopMode 0
+#endif
+
+#if SERVICE_PortServer || SERVICE_PortForward
+# undef SERVICE_Streams
+# define SERVICE_Streams 1
+#endif
+
+#if !defined(ENABLE_LibWebSockets)
+# define ENABLE_LibWebSockets 0
+#endif
+
+#if !defined(ENABLE_HttpServer)
+# define ENABLE_HttpServer 0
+#endif
+
+#endif /* D_framework_config */
diff --git a/examples/daytime/tcf/config.h b/examples/daytime/tcf/config.h
index 9332efe2..9b07775d 100644
--- a/examples/daytime/tcf/config.h
+++ b/examples/daytime/tcf/config.h
@@ -202,20 +202,6 @@
# define ENABLE_ProfilerSST 0
#endif
-#if !defined(SERVICE_PortForward)
-#define SERVICE_PortForward 0
-#endif
-
-#if !defined(SERVICE_PortServer)
-#define SERVICE_PortServer 0
-#endif
-
-#if !defined(ENABLE_PortForwardProxy)
-#define ENABLE_PortForwardProxy SERVICE_PortServer
-#endif
-
-#if !defined(ENABLE_LibWebSockets)
-#define ENABLE_LibWebSockets 0
-#endif
+#include <tcf/framework/config.h>
#endif /* D_config */
diff --git a/server/tcf/config.h b/server/tcf/config.h
index 4d271b77..317e0a01 100644
--- a/server/tcf/config.h
+++ b/server/tcf/config.h
@@ -166,21 +166,6 @@
#define ENABLE_ProfilerSST 0
#define ENABLE_ContextIdHashTable 0
-#if !defined(SERVICE_PortForward)
-#define SERVICE_PortForward 0
-#endif
-
-#if !defined(SERVICE_PortServer)
-#define SERVICE_PortServer 0
-#endif
-
-#if !defined(ENABLE_PortForwardProxy)
-#define ENABLE_PortForwardProxy SERVICE_PortServer
-#endif
-
-#if !defined(ENABLE_LibWebSockets)
-#define ENABLE_LibWebSockets 0
-#endif
-
+#include <tcf/framework/config.h>
#endif /* D_config */
diff --git a/tests/mem-leaks/tcf/config.h b/tests/mem-leaks/tcf/config.h
index 4b130972..bb7700d5 100644
--- a/tests/mem-leaks/tcf/config.h
+++ b/tests/mem-leaks/tcf/config.h
@@ -16,6 +16,7 @@
#ifndef D_config
#define USE_HW_BPS 0
-#include "../../agent/tcf/config.h"
+
+#include <tcf/framework/config.h>
#endif /* D_config */
diff --git a/tests/test-dwarf/tcf/config.h b/tests/test-dwarf/tcf/config.h
index 390088d9..99d3edf0 100644
--- a/tests/test-dwarf/tcf/config.h
+++ b/tests/test-dwarf/tcf/config.h
@@ -98,7 +98,7 @@
#define ENABLE_ProfilerSST 0
#define ENABLE_ContextIdHashTable 0
#define ENABLE_SignalHandlers 0
-#define ENABLE_PortForwardProxy 0
-#define ENABLE_LibWebSockets 0
+
+#include <tcf/framework/config.h>
#endif /* D_config */

Back to the top