char *dummy;
if (!args)
- error_no_arg ("process-id to attach");
+ error_no_arg (_("process-id to attach"));
dummy = args;
pid = strtol (args, &dummy, 0);
/* Some targets don't set errno on errors, grrr! */
if ((pid == 0) && (args == dummy))
- error ("Illegal process-id: %s\n", args);
+ error (_("Illegal process-id: %s."), args);
if (pid == getpid ()) /* Trying to masturbate? */
- error ("I refuse to debug myself!");
+ error (_("I refuse to debug myself!"));
if (from_tty)
{
exec_file = (char *) get_exec_file (0);
if (exec_file)
- printf_unfiltered ("Attaching to program: %s, %s\n", exec_file,
+ printf_unfiltered (_("Attaching to program: %s, %s\n"), exec_file,
target_pid_to_str (pid_to_ptid (pid)));
else
- printf_unfiltered ("Attaching to %s\n",
+ printf_unfiltered (_("Attaching to %s\n"),
target_pid_to_str (pid_to_ptid (pid)));
gdb_flush (gdb_stdout);
char *exec_file = get_exec_file (0);
if (exec_file == 0)
exec_file = "";
- printf_unfiltered ("Detaching from program: %s, %s\n", exec_file,
+ printf_unfiltered (_("Detaching from program: %s, %s\n"), exec_file,
target_pid_to_str (pid_to_ptid (pid)));
gdb_flush (gdb_stdout);
}
static void
child_files_info (struct target_ops *ignore)
{
- printf_unfiltered ("\tUsing the running image of %s %s.\n",
+ printf_unfiltered (_("\tUsing the running image of %s %s.\n"),
attach_flag ? "attached" : "child", target_pid_to_str (inferior_ptid));
}
static void
child_open (char *arg, int from_tty)
{
- error ("Use the \"run\" command to start a Unix child process.");
+ error (_("Use the \"run\" command to start a Unix child process."));
}
/* Stub function which causes the inferior that runs it, to be ptrace-able
child_create_inferior (char *exec_file, char *allargs, char **env,
int from_tty)
{
-#ifdef HPUXHPPA
- fork_inferior (exec_file, allargs, env, ptrace_me, ptrace_him, pre_fork_inferior, NULL);
-#else
fork_inferior (exec_file, allargs, env, ptrace_me, ptrace_him, NULL, NULL);
-#endif
+
/* We are at the first instruction we care about. */
observer_notify_inferior_created (¤t_target, from_tty);
/* Pedal to the metal... */
#if !defined(CHILD_INSERT_FORK_CATCHPOINT)
-int
+void
child_insert_fork_catchpoint (int pid)
{
- /* This version of Unix doesn't support notification of fork events. */
- return 0;
+ /* This version of Unix doesn't support notification of fork
+ events. */
}
#endif
#endif
#if !defined(CHILD_INSERT_VFORK_CATCHPOINT)
-int
+void
child_insert_vfork_catchpoint (int pid)
{
- /* This version of Unix doesn't support notification of vfork events. */
- return 0;
+ /* This version of Unix doesn't support notification of vfork
+ events. */
}
#endif
#endif
#if !defined(CHILD_INSERT_EXEC_CATCHPOINT)
-int
+void
child_insert_exec_catchpoint (int pid)
{
- /* This version of Unix doesn't support notification of exec events. */
- return 0;
+ /* This version of Unix doesn't support notification of exec
+ events. */
}
#endif
return NATIVE_XFER_AUXV (ops, object, annex, readbuf, writebuf,
offset, len);
- case TARGET_OBJECT_WCOOKIE:
-#ifndef NATIVE_XFER_WCOOKIE
-#define NATIVE_XFER_WCOOKIE(OPS,OBJECT,ANNEX,WRITEBUF,READBUF,OFFSET,LEN) (-1)
-#endif
- return NATIVE_XFER_WCOOKIE (ops, object, annex, readbuf, writebuf,
- offset, len);
-
default:
return -1;
}