diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2010-12-31 11:49:34 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2010-12-31 11:49:34 (GMT) |
commit | 651c94450df8619c26e26a133289dbaa197616f4 (patch) | |
tree | 1a81a2625687116d205cb5c6583497cb657f8460 /src/debug/remgdb | |
parent | dbec8e8af5f296f0b95cd9c07e7d96b1a4277137 (diff) |
Supported a first basic packet of the Java Debug Wire Protocol.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@204 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/debug/remgdb')
-rw-r--r-- | src/debug/remgdb/tcp.c | 10 |
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); |