Discussion:
[Bug cli/22455] New: blank line repeats commands even when scripting
tromey at sourceware dot org
2017-11-17 16:13:23 UTC
Permalink
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.
tromey at sourceware dot org
2018-08-15 12:25:20 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=22455

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
I'm not super convinced by this one now since gdb is still
reading those commands from stdin; in other situations, like
"source", gdb seems to do the right thing.
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-09-15 13:40:56 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=22455

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED

--- Comment #2 from Tom Tromey <tromey at sourceware dot org> ---
Decided to close this.
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-09-15 13:41:06 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=22455

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...