This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/14513] setting extended-prompt triggers spurious newline to be emitted
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 04 May 2015 17:05:52 +0000
- Subject: [Bug python/14513] setting extended-prompt triggers spurious newline to be emitted
- Auto-submitted: auto-generated
- References: <bug-14513-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=14513
Tom Tromey <tromey at sourceware dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
The discussion in late 2013 seems to have petered out.
I've been using this locally:
diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c
index 06b9ae9..b395f9d 100644
--- a/gdb/python/py-param.c
+++ b/gdb/python/py-param.c
@@ -387,8 +387,12 @@ get_set_value (char *args, int from_tty,
set_doc_string = get_doc_string (obj, set_doc_cst);
}
+#if 0
+ /* See https://sourceware.org/bugzilla/show_bug.cgi?id=14513.
+ There's no reason to print anything here. */
make_cleanup (xfree, set_doc_string);
fprintf_filtered (gdb_stdout, "%s\n", set_doc_string);
+#endif
Py_XDECREF (set_doc_func);
do_cleanups (cleanup);
--
You are receiving this mail because:
You are on the CC list for the bug.