This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/22455] New: blank line repeats commands even when scripting
- From: "tromey at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 17 Nov 2017 16:13:23 +0000
- Subject: [Bug cli/22455] New: blank line repeats commands even when scripting
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=22455
Bug ID: 22455
Summary: blank line repeats commands even when scripting
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: ---
Try this:
gdb -nx << END
print 23
END
I get this in the output:
(gdb) $1 = 23
(gdb) $2 = 23
The reason is that gdb is repeating the command, due to the blank line.
I think instead gdb should only repeat when the commands are coming
from the tty.
--
You are receiving this mail because:
You are on the CC list for the bug.