diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2011-01-06 01:22:24 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2011-01-06 01:22:24 (GMT) |
commit | cb8d8fb7a69dfd7ef03585d921ddccfc452f39de (patch) | |
tree | af7d552e0e9e1ae5f8723ba4660f7d3ff2c6e4dc /src/debug/jdwp/tcp.c | |
parent | ee2e35f6dced8340682eab8cb013ba2911858c53 (diff) |
Attached the debugger to a given target.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@207 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/debug/jdwp/tcp.c')
-rw-r--r-- | src/debug/jdwp/tcp.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/debug/jdwp/tcp.c b/src/debug/jdwp/tcp.c index 38acd29..d4ec1d7 100644 --- a/src/debug/jdwp/tcp.c +++ b/src/debug/jdwp/tcp.c @@ -32,11 +32,15 @@ #include <sys/types.h> +#include <i18n.h> + + #include "packet.h" #include "misc/header.h" #include "sets/list.h" #include "../stream-int.h" #include "../../common/net.h" +#include "../../panels/log.h" @@ -180,12 +184,14 @@ static bool g_jdwp_tcp_client_connect(GJdwpTcpClient *client) sock = connect_via_tcp(client->server, client->port, &addr); if (sock == -1) { - printf("Echec de connexion au serveur JDWP sur %s:%s\n", - client->server, client->port); + log_variadic_message(LMT_ERROR, _("Error while connecting to the JDWP server at %s:%s."), + //printf("Echec de connexion au serveur JDWP sur %s:%s\n", + client->server, client->port); return false; } - printf("Connecté à %s:%hd\n", client->server, ntohs(addr.sin_port)); + log_variadic_message(LMT_PROCESS, _("Connected to %s:%hd."), + client->server, ntohs(addr.sin_port)); if (send(sock, "JDWP-Handshake", 14, 0) != 14) goto gjtcc_error; @@ -202,7 +208,7 @@ static bool g_jdwp_tcp_client_connect(GJdwpTcpClient *client) gjtcc_error: - printf("Echec des premiers échanges !\n"); + log_simple_message(LMT_ERROR, _("Failure in the first JDWP handshake.")); close(sock); |