From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96564 invoked by alias); 4 May 2015 17:05:53 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 96539 invoked by uid 48); 4 May 2015 17:05:53 -0000 From: "tromey at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug python/14513] setting extended-prompt triggers spurious newline to be emitted Date: Mon, 04 May 2015 17:05:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: python X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: tromey at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: pmuldoon at redhat dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q2/txt/msg00217.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=14513 Tom Tromey changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |tromey at sourceware dot org --- Comment #2 from Tom Tromey --- 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.