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/22454] New: logging sometimes prints prompt


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.

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