Re: --with-pkgversion and --with-bugurl support for GDB

Andreas Schwab
2008-06-10T11:58:13Z

"Joseph S. Myers" <joseph@codesourcery.com> writes:

> @@ -1154,6 +1154,13 @@ and \"show warranty\" for details.\n");
> fprintf_filtered (stream, "%s", host_name);
> }
> fprintf_filtered (stream, "\".");
> +
> + if (REPORT_BUGS_TO[0])
> + {
> + fprintf_filtered (stream,
> + _("\nFor bug reporting instructions, please see:\n"));
> + fprintf_filtered (stream, "%s.\n", REPORT_BUGS_TO);

print_gdb_version is not supposed to print a final newline, see its uses
in captured_main. Committed as obvious.

Andreas.

2008-06-10 Andreas Schwab <schwab@suse.de>

* top.c (print_gdb_version): Don't print final newline.

--- gdb/top.c.~1.142.~ 2008-06-06 10:04:20.000000000 +0200
+++ gdb/top.c 2008-06-10 13:43:35.000000000 +0200
@@ -1159,7 +1159,7 @@ and \"show warranty\" for details.\n");
{
fprintf_filtered (stream,
_("\nFor bug reporting instructions, please see:\n"));
- fprintf_filtered (stream, "%s.\n", REPORT_BUGS_TO);
+ fprintf_filtered (stream, "%s.", REPORT_BUGS_TO);
}
}
\f

--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃŸe 5, 90409 NÃ¼rnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."