diff options
author | Pierre Muller <muller@sourceware.org> | 2011-03-16 17:59:03 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2011-03-16 17:59:03 +0000 |
commit | b37520b6265d8479f34d8ffa36ec1c88d4360734 (patch) | |
tree | 6084ca12620edce4c760a0ca52022dd94f506ad9 | |
parent | b08ee6a2eea46111d762692dc45fbe0194f51c2c (diff) | |
download | gdb-b37520b6265d8479f34d8ffa36ec1c88d4360734.zip gdb-b37520b6265d8479f34d8ffa36ec1c88d4360734.tar.gz gdb-b37520b6265d8479f34d8ffa36ec1c88d4360734.tar.bz2 |
Fix ARI warnings about new lines at the end of messages, which
are unneeded as there is a new line added at the end of the message
automatically.
* darwin-nat.c (darwin_stop_inferior): Ditto.
* dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
* dfp.c (decimal_to_number): Ditto.
* exec.c (print_section_info): Ditto.
* i386-darwin-nat.c (darwin_set_sstep): Ditto.
* osdata.c (get_osdata): Ditto.
* record.c (bfdcore_write): Ditto.
* remote-mips.c (mips_readchar): Ditto.
* remote.c (read_ptid): Ditto.
* ser-mingw.c (ser_windows_raw): Ditto.
* tracepoint.c (add_local_symbols): Ditto.
* windows-nat.c (fake_create_process): Ditto.
-rw-r--r-- | gdb/ChangeLog | 18 | ||||
-rw-r--r-- | gdb/darwin-nat.c | 2 | ||||
-rw-r--r-- | gdb/dec-thread.c | 2 | ||||
-rw-r--r-- | gdb/dfp.c | 2 | ||||
-rw-r--r-- | gdb/exec.c | 2 | ||||
-rw-r--r-- | gdb/i386-darwin-nat.c | 2 | ||||
-rw-r--r-- | gdb/osdata.c | 2 | ||||
-rw-r--r-- | gdb/record.c | 2 | ||||
-rw-r--r-- | gdb/remote-mips.c | 2 | ||||
-rw-r--r-- | gdb/remote.c | 2 | ||||
-rw-r--r-- | gdb/ser-mingw.c | 2 | ||||
-rw-r--r-- | gdb/tracepoint.c | 2 | ||||
-rw-r--r-- | gdb/windows-nat.c | 2 |
13 files changed, 30 insertions, 12 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0bcff4b..0f38bdf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,21 @@ +2011-03-16 Pierre Muller <muller@ics.u-strasbg.fr> + + Fix ARI warnings about new lines at the end of messages, which + are unneeded as there is a new line added at the end of the message + automatically. + * darwin-nat.c (darwin_stop_inferior): Ditto. + * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto. + * dfp.c (decimal_to_number): Ditto. + * exec.c (print_section_info): Ditto. + * i386-darwin-nat.c (darwin_set_sstep): Ditto. + * osdata.c (get_osdata): Ditto. + * record.c (bfdcore_write): Ditto. + * remote-mips.c (mips_readchar): Ditto. + * remote.c (read_ptid): Ditto. + * ser-mingw.c (ser_windows_raw): Ditto. + * tracepoint.c (add_local_symbols): Ditto. + * windows-nat.c (fake_create_process): Ditto. + 2011-03-16 Tom Tromey <tromey@redhat.com> * tracepoint.c (stop_tracing): Don't declare. diff --git a/gdb/darwin-nat.c b/gdb/darwin-nat.c index b345aac..4e316bb 100644 --- a/gdb/darwin-nat.c +++ b/gdb/darwin-nat.c @@ -1236,7 +1236,7 @@ darwin_stop_inferior (struct inferior *inf) res = kill (inf->pid, SIGSTOP); if (res != 0) - warning (_("cannot kill: %s\n"), safe_strerror (errno)); + warning (_("cannot kill: %s"), safe_strerror (errno)); /* Wait until the process is really stopped. */ while (1) diff --git a/gdb/dec-thread.c b/gdb/dec-thread.c index 650b86c..88e8a85 100644 --- a/gdb/dec-thread.c +++ b/gdb/dec-thread.c @@ -700,7 +700,7 @@ dec_thread_get_ada_task_ptid (long lwp, long thread) if (info->info.teb == (pthread_t) thread) return ptid_build_from_info (*info); - warning (_("Could not find thread id from THREAD = 0x%lx\n"), thread); + warning (_("Could not find thread id from THREAD = 0x%lx"), thread); return inferior_ptid; } @@ -134,7 +134,7 @@ decimal_to_number (const gdb_byte *from, int len, decNumber *to) decimal128ToNumber ((decimal128 *) from, to); break; default: - error (_("Unknown decimal floating point type.\n")); + error (_("Unknown decimal floating point type.")); break; } } @@ -728,7 +728,7 @@ print_section_info (struct target_section_table *t, bfd *abfd) } } if (p == t->sections_end) - warning (_("Cannot find section for the entry point of %s.\n"), + warning (_("Cannot find section for the entry point of %s."), bfd_get_filename (abfd)); entry_point = gdbarch_addr_bits_remove (gdbarch, diff --git a/gdb/i386-darwin-nat.c b/gdb/i386-darwin-nat.c index a3d925f..61e2e15 100644 --- a/gdb/i386-darwin-nat.c +++ b/gdb/i386-darwin-nat.c @@ -581,7 +581,7 @@ darwin_set_sstep (thread_t thread, int enable) break; #endif default: - error (_("darwin_set_sstep: unknown flavour: %d\n"), regs.tsh.flavor); + error (_("darwin_set_sstep: unknown flavour: %d"), regs.tsh.flavor); } } diff --git a/gdb/osdata.c b/gdb/osdata.c index c82746f..024d8f4 100644 --- a/gdb/osdata.c +++ b/gdb/osdata.c @@ -267,7 +267,7 @@ get_osdata (const char *type) } if (!osdata) - error (_("Can not fetch data now.\n")); + error (_("Can not fetch data now.")); return osdata; } diff --git a/gdb/record.c b/gdb/record.c index aa5e9a7..7cc26da 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -2373,7 +2373,7 @@ bfdcore_write (bfd *obfd, asection *osec, void *buf, int len, int *offset) if (ret) *offset += len; else - error (_("Failed to write %d bytes to core file %s ('%s').\n"), + error (_("Failed to write %d bytes to core file %s ('%s')."), len, bfd_get_filename (obfd), bfd_errmsg (bfd_get_error ())); } diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c index a91b507..8f96945 100644 --- a/gdb/remote-mips.c +++ b/gdb/remote-mips.c @@ -672,7 +672,7 @@ mips_readchar (int timeout) if (ch == SERIAL_TIMEOUT && timeout == -1) /* Watchdog went off. */ { target_mourn_inferior (); - error (_("Watchdog has expired. Target detached.\n")); + error (_("Watchdog has expired. Target detached.")); } if (ch == SERIAL_EOF) diff --git a/gdb/remote.c b/gdb/remote.c index ad473cc..b3323f9 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -1876,7 +1876,7 @@ read_ptid (char *buf, char **obuf) /* Multi-process ptid. */ pp = unpack_varlen_hex (p + 1, &pid); if (*pp != '.') - error (_("invalid remote ptid: %s\n"), p); + error (_("invalid remote ptid: %s"), p); p = pp; pp = unpack_varlen_hex (p + 1, &tid); diff --git a/gdb/ser-mingw.c b/gdb/ser-mingw.c index 6de3471..b362878 100644 --- a/gdb/ser-mingw.c +++ b/gdb/ser-mingw.c @@ -172,7 +172,7 @@ ser_windows_raw (struct serial *scb) scb->current_timeout = 0; if (SetCommState (h, &state) == 0) - warning (_("SetCommState failed\n")); + warning (_("SetCommState failed")); } static int diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 2d46da7..c9997c6 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -1122,7 +1122,7 @@ add_local_symbols (struct collection_list *collect, block = block_for_pc (pc); if (block == NULL) { - warning (_("Can't collect args; no symbol table info available.\n")); + warning (_("Can't collect args; no symbol table info available.")); return; } diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index 86f9242..fd8ce10 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1289,7 +1289,7 @@ fake_create_process (void) open_process_used = 1; else { - error (_("OpenProcess call failed, GetLastError = %lud\n"), + error (_("OpenProcess call failed, GetLastError = %lud"), GetLastError ()); /* We can not debug anything in that case. */ } |