summaryrefslogtreecommitdiff
path: root/src/debug/remgdb/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug/remgdb/tcp.c')
-rw-r--r--src/debug/remgdb/tcp.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/debug/remgdb/tcp.c b/src/debug/remgdb/tcp.c
index fa97f8c..6c6b78b 100644
--- a/src/debug/remgdb/tcp.c
+++ b/src/debug/remgdb/tcp.c
@@ -35,6 +35,8 @@
#include "stream-int.h"
+#include "../../common/net.h"
+
/* Flux de communication TCP avec un serveur GDB (instance) */
struct _GGdbTcpClient
@@ -59,7 +61,7 @@ static void g_gdb_tcp_client_class_init(GGdbTcpClientClass *);
static void g_gdb_tcp_client_init(GGdbTcpClient *);
/* Ouvre une connexion TCP à un serveur GDB. */
-static int connect_via_tcp(const char *, const char *);
+//static int connect_via_tcp(const char *, const char *);
/* Envoie des données à un serveur GDB. */
static bool g_gdb_tcp_client_send_data(GGdbTcpClient *, const char *, size_t);
@@ -127,7 +129,7 @@ static void g_gdb_tcp_client_init(GGdbTcpClient *client)
* Remarques : - *
* *
******************************************************************************/
-
+#if 0
static int connect_via_tcp(const char *server, const char *port)
{
int result; /* Bilan à retourner */
@@ -181,7 +183,7 @@ static int connect_via_tcp(const char *server, const char *port)
return result;
}
-
+#endif
/******************************************************************************
* *
@@ -201,7 +203,7 @@ GGdbStream *g_gdb_tcp_client_new(const char *server, const char *port)
GGdbTcpClient *result; /* Structure à retourner */
int sock; /* Flux ouvert à construire */
- sock = connect_via_tcp(server, port);
+ sock = connect_via_tcp(server, port, NULL);
if (sock == -1) return NULL;
result = g_object_new(G_TYPE_GDB_TCP_CLIENT, NULL);