This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/22454] New: logging sometimes prints prompt
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 17 Nov 2017 15:33:14 +0000
- Subject: [Bug cli/22454] New: logging sometimes prints prompt
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22454
Bug ID: 22454
Summary: logging sometimes prints prompt
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: cli
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---
I was trying to script gdb and I noticed that sometimes, the prompt
will show up in the logging output.
Try this:
gdb -nx << END
set logging file /tmp/out
set logging on
print 23
quit
END
When I do this, /tmp/out contains:
(gdb) $1 = 23
(gdb)
(... and there's no final newline)
On irc palves said:
<palves_> probably readline vs no-readline.
<palves_> try "set editing off" in an interactive session.
<palves_> I see prompts in the log with that.
--
You are receiving this mail because:
You are on the CC list for the bug.