From 8b9960ddefe051858bdde9452dc0aafeb48c36b1 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Fri, 11 Feb 2005 04:06:14 +0000 Subject: 2005-02-10 Andrew Cagney Mark up all error and warning messages. * ada-lang.c, amd64-tdep.c, arch-utils.c, breakpoint.c: Update. * bsd-kvm.c, bsd-uthread.c, coff-solib.h, coffread.c: Update. * core-aout.c, core-regset.c, corefile.c, corelow.c: Update. * cp-abi.c, cp-support.c, cp-valprint.c, cris-tdep.c: Update. * dbxread.c, demangle.c, doublest.c, dsrec.c: Update. * dve3900-rom.c, dwarf2expr.c, dwarf2loc.c: Update. * dwarf2read.c, dwarfread.c, elfread.c, eval.c: Update. * event-top.c, exec.c, expprint.c, f-lang.c: Update. * f-typeprint.c, f-valprint.c, fbsd-nat.c, findvar.c: Update. * frame.c, frv-linux-tdep.c, gcore.c, gdbtypes.c: Update. * gnu-nat.c, gnu-v2-abi.c, gnu-v3-abi.c, go32-nat.c: Update. * hpacc-abi.c, hppa-hpux-nat.c, hppa-hpux-tdep.c: Update. * hppa-linux-nat.c, hppa-linux-tdep.c, hppa-tdep.c: Update. * hpread.c, hpux-thread.c, i386-linux-nat.c: Update. * i386-linux-tdep.c, i386-tdep.c, i386bsd-nat.c: Update. * i386gnu-nat.c, i387-tdep.c, ia64-linux-nat.c: Update. * ia64-tdep.c, inf-child.c, inf-ptrace.c, inf-ttrace.c: Update. * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Update. * inftarg.c, interps.c, irix5-nat.c, jv-lang.c: Update. * kod-cisco.c, kod.c, language.c, libunwind-frame.c: Update. * linespec.c, linux-nat.c, linux-thread-db.c, m2-lang.c: Update. * m32r-rom.c, m68hc11-tdep.c, m68k-tdep.c: Update. * m68klinux-nat.c, macrocmd.c, macroexp.c, main.c: Update. * maint.c, mdebugread.c, mem-break.c, memattr.c: Update. * mips-linux-tdep.c, mips-tdep.c, mipsread.c, monitor.c: Update. * nlmread.c, nto-procfs.c, objc-lang.c, objfiles.c: Update. * observer.c, ocd.c, p-lang.c, p-typeprint.c: Update. * p-valprint.c, pa64solib.c, parse.c, ppc-linux-tdep.c: Update. * ppcnbsd-tdep.c, printcmd.c, procfs.c, remote-e7000.c: Update. * remote-fileio.c, remote-m32r-sdi.c, remote-rdi.c: Update. * remote-rdp.c, remote-sim.c, remote-st.c: Update. * remote-utils.c, remote-utils.h, remote.c: Update. * rom68k-rom.c, rs6000-nat.c, s390-tdep.c, scm-lang.c: Update. * ser-e7kpc.c, ser-tcp.c, ser-unix.c, sh-tdep.c: Update. * sh3-rom.c, shnbsd-tdep.c, sol-thread.c, solib-aix5.c: Update. * solib-frv.c, solib-irix.c, solib-osf.c, solib-pa64.c: Update. * solib-som.c, solib-sunos.c, solib-svr4.c, solib.c: Update. * somread.c, somsolib.c, source.c, stabsread.c: Update. * stack.c, std-regs.c, symfile-mem.c, symfile.c: Update. * symmisc.c, symtab.c, target.c, thread.c, top.c: Update. * tracepoint.c, trad-frame.c, typeprint.c, utils.c: Update. * uw-thread.c, valarith.c, valops.c, valprint.c: Update. * value.c, varobj.c, version.in, win32-nat.c, wince.c: Update. * xcoffread.c, xcoffsolib.c, cli/cli-cmds.c: Update. * cli/cli-decode.c, cli/cli-dump.c, cli/cli-logging.c: Update. * cli/cli-script.c, cli/cli-setshow.c, mi/mi-cmd-break.c: Update. * mi/mi-cmd-disas.c, mi/mi-cmd-env.c, mi/mi-cmd-file.c: Update. * mi/mi-cmd-stack.c, mi/mi-cmd-var.c, mi/mi-getopt.c: Update. * mi/mi-symbol-cmds.c, tui/tui-layout.c, tui/tui-stack.c: Update. * tui/tui-win.c: Update. --- gdb/procfs.c | 56 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'gdb/procfs.c') diff --git a/gdb/procfs.c b/gdb/procfs.c index 29d5c8140f0..5976624a1b6 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -466,10 +466,10 @@ find_procinfo_or_die (int pid, int tid) if (pi == NULL) { if (tid) - error ("procfs: couldn't find pid %d (kernel thread %d) in procinfo list.", + error (_("procfs: couldn't find pid %d (kernel thread %d) in procinfo list."), pid, tid); else - error ("procfs: couldn't find pid %d in procinfo list.", pid); + error (_("procfs: couldn't find pid %d in procinfo list."), pid); } return pi; } @@ -833,7 +833,7 @@ dead_procinfo (procinfo *pi, char *msg, int kill_p) kill (pi->pid, SIGKILL); destroy_procinfo (pi); - error (msg); + error ((msg)); } /* @@ -902,18 +902,18 @@ load_syscalls (procinfo *pi) sysent_fd = open_with_retry (pathname, O_RDONLY); if (sysent_fd < 0) { - error ("load_syscalls: Can't open /proc/%d/sysent", pi->pid); + error (_("load_syscalls: Can't open /proc/%d/sysent"), pi->pid); } size = sizeof header - sizeof (prsyscall_t); if (read (sysent_fd, &header, size) != size) { - error ("load_syscalls: Error reading /proc/%d/sysent", pi->pid); + error (_("load_syscalls: Error reading /proc/%d/sysent"), pi->pid); } if (header.pr_nsyscalls == 0) { - error ("load_syscalls: /proc/%d/sysent contains no syscalls!", pi->pid); + error (_("load_syscalls: /proc/%d/sysent contains no syscalls!"), pi->pid); } size = header.pr_nsyscalls * sizeof (prsyscall_t); @@ -922,7 +922,7 @@ load_syscalls (procinfo *pi) if (read (sysent_fd, syscalls, size) != size) { xfree (syscalls); - error ("load_syscalls: Error reading /proc/%d/sysent", pi->pid); + error (_("load_syscalls: Error reading /proc/%d/sysent"), pi->pid); } /* Find maximum syscall number. This may not be the same as @@ -1471,7 +1471,7 @@ proc_modify_flag (procinfo *pi, long flag, long mode) pi->status_valid = 0; if (!win) - warning ("procfs: modify_flag failed to turn %s %s", + warning (_("procfs: modify_flag failed to turn %s %s"), flag == PR_FORK ? "PR_FORK" : flag == PR_RLC ? "PR_RLC" : #ifdef PR_ASYNC @@ -1819,7 +1819,7 @@ proc_set_traced_signals (procinfo *pi, gdb_sigset_t *sigset) pi->status_valid = 0; if (!win) - warning ("procfs: set_traced_signals failed"); + warning (_("procfs: set_traced_signals failed")); return win; } @@ -3516,7 +3516,7 @@ procfs_attach (char *args, int from_tty) pid = atoi (args); if (pid == getpid ()) - error ("Attaching GDB to itself is not a good idea..."); + error (_("Attaching GDB to itself is not a good idea...")); if (from_tty) { @@ -3570,7 +3570,7 @@ do_attach (ptid_t ptid) int fail; if ((pi = create_procinfo (PIDGET (ptid), 0)) == NULL) - perror ("procfs: out of memory in 'attach'"); + perror (_("procfs: out of memory in 'attach'")); if (!open_procinfo_files (pi, FD_CTL)) { @@ -3697,7 +3697,7 @@ procfs_fetch_registers (int regnum) pi = find_procinfo_or_die (pid, tid); if (pi == NULL) - error ("procfs: fetch_registers failed to find procinfo for %s", + error (_("procfs: fetch_registers failed to find procinfo for %s"), target_pid_to_str (inferior_ptid)); gregs = proc_get_gregs (pi); @@ -3765,7 +3765,7 @@ procfs_store_registers (int regnum) pi = find_procinfo_or_die (pid, tid); if (pi == NULL) - error ("procfs: store_registers: failed to find procinfo for %s", + error (_("procfs: store_registers: failed to find procinfo for %s"), target_pid_to_str (inferior_ptid)); gregs = proc_get_gregs (pi); @@ -3919,7 +3919,7 @@ wait_again: wait_retval = wait (&wstat); /* "wait" for the child's exit */ if (wait_retval != PIDGET (inferior_ptid)) /* wrong child? */ - error ("procfs: couldn't stop process %d: wait returned %d\n", + error (_("procfs: couldn't stop process %d: wait returned %d."), PIDGET (inferior_ptid), wait_retval); /* FIXME: might I not just use waitpid? Or try find_procinfo to see if I know about this child? */ @@ -4232,7 +4232,7 @@ wait_again: printf_filtered ("procfs:%d -- ", __LINE__); printf_filtered ("child stopped for unknown reason:\n"); proc_prettyprint_why (why, what, 1); - error ("... giving up..."); + error (_("... giving up...")); break; } break; /* case PR_FAULTED: */ @@ -4240,7 +4240,7 @@ wait_again: printf_filtered ("procfs:%d -- ", __LINE__); printf_filtered ("child stopped for unknown reason:\n"); proc_prettyprint_why (why, what, 1); - error ("... giving up..."); + error (_("... giving up...")); break; } /* @@ -4283,7 +4283,7 @@ wait_again: printf_filtered ("procfs:%d -- process not stopped.\n", __LINE__); proc_prettyprint_flags (flags, 1); - error ("procfs: ...giving up..."); + error (_("procfs: ...giving up...")); } } @@ -4554,7 +4554,7 @@ procfs_resume (ptid_t ptid, int step, enum target_signal signo) if (!proc_run_process (pi, step, native_signo)) { if (errno == EBUSY) - warning ("resume: target already running. Pretend to resume, and hope for the best!\n"); + warning (_("resume: target already running. Pretend to resume, and hope for the best!")); else proc_error (pi, "target_resume", __LINE__); } @@ -4628,7 +4628,7 @@ procfs_files_info (struct target_ops *ignore) static void procfs_open (char *args, 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.")); } /* @@ -5084,7 +5084,7 @@ procfs_create_inferior (char *exec_file, char *allargs, char **env, /* Not found. This must be an error rather than merely passing the file to execlp(), because execlp() would try all the exec()s, causing GDB to get confused. */ - error ("procfs:%d -- Can't find shell %s in PATH", + error (_("procfs:%d -- Can't find shell %s in PATH"), __LINE__, shell_file); shell_file = tryname; @@ -5335,14 +5335,14 @@ procfs_find_LDT_entry (ptid_t ptid) /* Find procinfo for the lwp. */ if ((pi = find_procinfo (PIDGET (ptid), TIDGET (ptid))) == NULL) { - warning ("procfs_find_LDT_entry: could not find procinfo for %d:%d.", + warning (_("procfs_find_LDT_entry: could not find procinfo for %d:%d."), PIDGET (ptid), TIDGET (ptid)); return NULL; } /* get its general registers. */ if ((gregs = proc_get_gregs (pi)) == NULL) { - warning ("procfs_find_LDT_entry: could not read gregs for %d:%d.", + warning (_("procfs_find_LDT_entry: could not read gregs for %d:%d."), PIDGET (ptid), TIDGET (ptid)); return NULL; } @@ -5577,7 +5577,7 @@ remove_dbx_link_breakpoint (void) if (memory_remove_breakpoint (dbx_link_bpt_addr, dbx_link_shadow_contents) != 0) - warning ("Unable to remove __dbx_link breakpoint."); + warning (_("Unable to remove __dbx_link breakpoint.")); dbx_link_bpt_addr = 0; } @@ -5630,7 +5630,7 @@ insert_dbx_link_bpt_in_file (int fd, CORE_ADDR ignored) abfd = bfd_fdopenr ("unamed", 0, fd); if (abfd == NULL) { - warning ("Failed to create a bfd: %s.\n", bfd_errmsg (bfd_get_error ())); + warning (_("Failed to create a bfd: %s."), bfd_errmsg (bfd_get_error ())); return 0; } @@ -5649,7 +5649,7 @@ insert_dbx_link_bpt_in_file (int fd, CORE_ADDR ignored) dbx_link_bpt_addr = sym_addr; if (target_insert_breakpoint (sym_addr, dbx_link_shadow_contents) != 0) { - warning ("Failed to insert dbx_link breakpoint."); + warning (_("Failed to insert dbx_link breakpoint.")); bfd_close (abfd); return 0; } @@ -5833,7 +5833,7 @@ info_proc_cmd (char *args, int from_tty) if (pid == 0) pid = PIDGET (inferior_ptid); if (pid == 0) - error ("No current process: you must name one."); + error (_("No current process: you must name one.")); else { /* Have pid, will travel. @@ -5924,7 +5924,7 @@ proc_trace_syscalls (char *args, int from_tty, int entry_or_exit, int mode) procinfo *pi; if (PIDGET (inferior_ptid) <= 0) - error ("you must be debugging a process to use this command."); + error (_("you must be debugging a process to use this command.")); if (args == NULL || args[0] == 0) error_no_arg ("system call to trace"); @@ -6141,7 +6141,7 @@ procfs_make_note_section (bfd *obfd, int *note_size) static char * procfs_make_note_section (bfd *obfd, int *note_size) { - error ("gcore not implemented for this host."); + error (_("gcore not implemented for this host.")); return NULL; /* lint */ } #endif /* Solaris or Unixware */ -- cgit v1.2.1