summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeder Andersen2012-03-14 17:47:36 (EDT)
committer Eugene Tarassov2012-03-15 16:33:29 (EDT)
commitec5d12c094140c99cc29d4706d8a84ab0bb28ac9 (patch)
tree543f1a6b14f40785e873e3abbdfdc0569ee74fa4
parent45b196ff4dc742ef7f1bb5463640cfa578e3e068 (diff)
downloadorg.eclipse.tcf.agent-ec5d12c094140c99cc29d4706d8a84ab0bb28ac9.zip
org.eclipse.tcf.agent-ec5d12c094140c99cc29d4706d8a84ab0bb28ac9.tar.gz
org.eclipse.tcf.agent-ec5d12c094140c99cc29d4706d8a84ab0bb28ac9.tar.bz2
TCF Server: fix server builds which do not include various services
-rw-r--r--server/tcf/main/server.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/server/tcf/main/server.c b/server/tcf/main/server.c
index 3edd0b3..dbf1d5a 100644
--- a/server/tcf/main/server.c
+++ b/server/tcf/main/server.c
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2007, 2011 Wind River Systems, Inc. and others.
+ * Copyright (c) 2007, 2012 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.
@@ -40,8 +40,12 @@ static void channel_new_connection(ChannelServer * serv, Channel * c) {
static void channel_redirection_listener(Channel * host, Channel * target) {
if (target->state == ChannelStateStarted) {
+#if defined(SERVICE_LineNumbers) && SERVICE_LineNumbers
ini_line_numbers_service(target->protocol);
+#endif
+#if defined(ENABLE_Symbols) && ENABLE_Symbols
ini_symbols_service(target->protocol);
+#endif
}
if (target->state == ChannelStateConnected) {
int i;
@@ -62,9 +66,16 @@ static void channel_redirection_listener(Channel * host, Channel * target) {
if (service_pm) forward_pm = 1;
}
if (service_mm) {
+#if defined(SERVICE_LineNumbers) && SERVICE_LineNumbers
if (!service_ln) ini_line_numbers_service(host->protocol);
+#endif
+#if defined(ENABLE_Symbols) && ENABLE_Symbols
if (!service_sm) ini_symbols_service(host->protocol);
+#endif
+#if defined(ENABLE_DebugContext) && ENABLE_DebugContext \
+ && defined(ENABLE_ContextProxy) && ENABLE_ContextProxy
create_context_proxy(host, target, forward_pm);
+#endif
}
}
}