aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2012-03-04 03:31:09 +0000
committerYao Qi <yao@codesourcery.com>2012-03-04 03:31:09 +0000
commit87399aa1a1688f8aa38db480e12c65f616f81d89 (patch)
tree5e63f655955a9bdc55b0fe63b51cb8a0aa6284f9
parent89b7509a3f268da5683b6eeaeeafef77e30e403a (diff)
downloadgdb-87399aa1a1688f8aa38db480e12c65f616f81d89.zip
gdb-87399aa1a1688f8aa38db480e12c65f616f81d89.tar.gz
gdb-87399aa1a1688f8aa38db480e12c65f616f81d89.tar.bz2
gdb/
* common/agent.c (gdb_connect_sync_socket): Add _ markup and remove trailing new line. (agent_run_command, agent_run_command): Add _ markup. (agent_capability_check): Likewise.
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/common/agent.c18
2 files changed, 16 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1386c6d..4ebf9f6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,10 @@
+2012-03-04 Yao Qi <yao@codesourcery.com>
+
+ * common/agent.c (gdb_connect_sync_socket): Add _ markup and
+ remove trailing new line.
+ (agent_run_command, agent_run_command): Add _ markup.
+ (agent_capability_check): Likewise.
+
2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
* breakpoint.c (set_condition_evaluation_mode): Set
diff --git a/gdb/common/agent.c b/gdb/common/agent.c
index 5c90822..ecb52dc 100644
--- a/gdb/common/agent.c
+++ b/gdb/common/agent.c
@@ -135,7 +135,7 @@ agent_get_helper_thread_id (void)
else
#endif
{
- warning ("Error reading helper thread's id in lib");
+ warning (_("Error reading helper thread's id in lib"));
}
}
@@ -171,7 +171,7 @@ gdb_connect_sync_socket (int pid)
res = fd = socket (PF_UNIX, SOCK_STREAM, 0);
if (res == -1)
{
- warning ("error opening sync socket: %s\n", strerror (errno));
+ warning (_("error opening sync socket: %s"), strerror (errno));
return -1;
}
@@ -180,7 +180,7 @@ gdb_connect_sync_socket (int pid)
res = xsnprintf (addr.sun_path, UNIX_PATH_MAX, "%s", path);
if (res >= UNIX_PATH_MAX)
{
- warning ("string overflow allocating socket name\n");
+ warning (_("string overflow allocating socket name"));
close (fd);
return -1;
}
@@ -188,9 +188,9 @@ gdb_connect_sync_socket (int pid)
res = connect (fd, (struct sockaddr *) &addr, sizeof (addr));
if (res == -1)
{
- warning ("error connecting sync socket (%s): %s. "
- "Make sure the directory exists and that it is writable.",
- path, strerror (errno));
+ warning (_("error connecting sync socket (%s): %s. "
+ "Make sure the directory exists and that it is writable."),
+ path, strerror (errno));
close (fd);
return -1;
}
@@ -224,7 +224,7 @@ agent_run_command (int pid, const char *cmd)
if (ret != 0)
{
- warning ("unable to write");
+ warning (_("unable to write"));
return -1;
}
@@ -310,7 +310,7 @@ agent_run_command (int pid, const char *cmd)
IPA_CMD_BUF_SIZE))
#endif
{
- warning ("Error reading command response");
+ warning (_("Error reading command response"));
return -1;
}
}
@@ -342,7 +342,7 @@ agent_capability_check (enum agent_capa agent_capa)
byte_order);
else
#endif
- warning ("Error reading capability of agent");
+ warning (_("Error reading capability of agent"));
}
return agent_capability & agent_capa;
}