summaryrefslogtreecommitdiff
path: root/gdb/common
diff options
context:
space:
mode:
authorLuis Machado <luisgpm@br.ibm.com>2013-08-23 02:34:34 +0000
committerLuis Machado <luisgpm@br.ibm.com>2013-08-23 02:34:34 +0000
commitb47f30e2b43887c9ff363bf7db10c51a68437765 (patch)
tree3283849b9c5a89388f8f05628ed3bd3251288eed /gdb/common
parent3a222053788b924a0623b6eab2ec84dffe54b6ce (diff)
downloadgdb-b47f30e2b43887c9ff363bf7db10c51a68437765.tar.gz
* common/linux-ptrace.c (linux_fork_to_function): Push #
directives to the start of the line. (linux_check_ptrace_features): Fix warning message to use the "_" markup.
Diffstat (limited to 'gdb/common')
-rw-r--r--gdb/common/linux-ptrace.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/common/linux-ptrace.c b/gdb/common/linux-ptrace.c
index c4808ab0776..a4a2ca3a91a 100644
--- a/gdb/common/linux-ptrace.c
+++ b/gdb/common/linux-ptrace.c
@@ -255,13 +255,13 @@ linux_fork_to_function (gdb_byte *child_stack, void (*function) (gdb_byte *))
child_stack = xmalloc (STACK_SIZE * 4);
/* Use CLONE_VM instead of fork, to support uClinux (no MMU). */
- #ifdef __ia64__
+#ifdef __ia64__
child_pid = __clone2 (function, child_stack, STACK_SIZE,
CLONE_VM | SIGCHLD, child_stack + STACK_SIZE * 2);
- #else /* !__ia64__ */
+#else /* !__ia64__ */
child_pid = clone (function, child_stack + STACK_SIZE,
CLONE_VM | SIGCHLD, child_stack + STACK_SIZE * 2);
- #endif /* !__ia64__ */
+#endif /* !__ia64__ */
#else /* !defined(__UCLIBC) && defined(HAS_NOMMU) */
child_pid = fork ();
@@ -445,7 +445,7 @@ linux_check_ptrace_features (void)
ret = ptrace (PTRACE_KILL, child_pid, (PTRACE_TYPE_ARG3) 0,
(PTRACE_TYPE_ARG4) 0);
if (ret != 0)
- warning ("linux_check_ptrace_features: failed to kill child");
+ warning (_("linux_check_ptrace_features: failed to kill child"));
my_waitpid (child_pid, &status, 0);
}
while (WIFSTOPPED (status));