This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug cli/22455] New: blank line repeats commands even when scripting


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]