public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug python/14513] New: setting extended-prompt triggers spurious newline to be emitted
@ 2012-08-23 18:32 vapier at gentoo dot org
2012-08-24 18:20 ` [Bug python/14513] " tromey at redhat dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: vapier at gentoo dot org @ 2012-08-23 18:32 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14513
Bug #: 14513
Summary: setting extended-prompt triggers spurious newline to
be emitted
Product: gdb
Version: HEAD
Status: NEW
Severity: minor
Priority: P2
Component: python
AssignedTo: unassigned@sourceware.org
ReportedBy: vapier@gentoo.org
Classification: Unclassified
$ gdb -nx -q
(gdb) set extended-prompt (gdb-new)
(gdb-new)
what's with that newline after the set command ? if i do the same thing with
my .gdbinit:
set extended-prompt (gdb-new)
when i launch gdb, i get:
$ gdb -q
(gdb-new)
looking at the code, it appears to be coming from python/py-param.c's
get_set_value:
fprintf_filtered (gdb_stdout, "%s\n", set_doc_string);
the set_doc_string here is empty, so we just get an empty newline printed out.
i've never looked through the python code before to suggest a suitable fix ...
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/14513] setting extended-prompt triggers spurious newline to be emitted
2012-08-23 18:32 [Bug python/14513] New: setting extended-prompt triggers spurious newline to be emitted vapier at gentoo dot org
@ 2012-08-24 18:20 ` tromey at redhat dot com
2013-09-18 13:18 ` pmuldoon at redhat dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: tromey at redhat dot com @ 2012-08-24 18:20 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14513
Tom Tromey <tromey at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at redhat dot com
--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-08-24 18:20:11 UTC ---
That code seems bogus to me.
I don't understand why it ought to print anything at all.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/14513] setting extended-prompt triggers spurious newline to be emitted
2012-08-23 18:32 [Bug python/14513] New: setting extended-prompt triggers spurious newline to be emitted vapier at gentoo dot org
2012-08-24 18:20 ` [Bug python/14513] " tromey at redhat dot com
@ 2013-09-18 13:18 ` pmuldoon at redhat dot com
2015-03-14 15:58 ` seb93250 at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pmuldoon at redhat dot com @ 2013-09-18 13:18 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=14513
Phil Muldoon <pmuldoon at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |pmuldoon at redhat dot com
Assignee|unassigned at sourceware dot org |pmuldoon at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/14513] setting extended-prompt triggers spurious newline to be emitted
2012-08-23 18:32 [Bug python/14513] New: setting extended-prompt triggers spurious newline to be emitted vapier at gentoo dot org
2012-08-24 18:20 ` [Bug python/14513] " tromey at redhat dot com
2013-09-18 13:18 ` pmuldoon at redhat dot com
@ 2015-03-14 15:58 ` seb93250 at gmail dot com
2015-05-04 17:05 ` tromey at sourceware dot org
2015-05-04 19:45 ` tromey at sourceware dot org
4 siblings, 0 replies; 6+ messages in thread
From: seb93250 at gmail dot com @ 2015-03-14 15:58 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=14513
seb93250 at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |seb93250 at gmail dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/14513] setting extended-prompt triggers spurious newline to be emitted
2012-08-23 18:32 [Bug python/14513] New: setting extended-prompt triggers spurious newline to be emitted vapier at gentoo dot org
` (2 preceding siblings ...)
2015-03-14 15:58 ` seb93250 at gmail dot com
@ 2015-05-04 17:05 ` tromey at sourceware dot org
2015-05-04 19:45 ` tromey at sourceware dot org
4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2015-05-04 17:05 UTC (permalink / raw)
To: gdb-prs
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug python/14513] setting extended-prompt triggers spurious newline to be emitted
2012-08-23 18:32 [Bug python/14513] New: setting extended-prompt triggers spurious newline to be emitted vapier at gentoo dot org
` (3 preceding siblings ...)
2015-05-04 17:05 ` tromey at sourceware dot org
@ 2015-05-04 19:45 ` tromey at sourceware dot org
4 siblings, 0 replies; 6+ messages in thread
From: tromey at sourceware dot org @ 2015-05-04 19:45 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=14513
--- Comment #3 from Tom Tromey <tromey at sourceware dot org> ---
> +#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);
Though of course the #if should come after making the cleanup.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-05-04 19:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-23 18:32 [Bug python/14513] New: setting extended-prompt triggers spurious newline to be emitted vapier at gentoo dot org
2012-08-24 18:20 ` [Bug python/14513] " tromey at redhat dot com
2013-09-18 13:18 ` pmuldoon at redhat dot com
2015-03-14 15:58 ` seb93250 at gmail dot com
2015-05-04 17:05 ` tromey at sourceware dot org
2015-05-04 19:45 ` tromey at sourceware dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).