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 gdb/15995] New: print and shell command output out of order


https://sourceware.org/bugzilla/show_bug.cgi?id=15995

            Bug ID: 15995
           Summary: print and shell command output out of order
           Product: gdb
           Version: 7.4
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: ahmedalmehdi at gmail dot com

I have the following gdb script:

define test1
printf "Foo "
!date
printf "\n"
end

I expected the output to be:
Foo Tue Oct 1 15:01:58 PDT 2013

However, I get the following:
Tue Oct 1 15:01:58 PDT 2013 Foo

I feel I need to somehow "flush" the "print".  I am not sure if this is a bug
or lack of understanding on my part.  Is there a command I can issue after the
"print" to flush stdout.

Thank you,
Ahmed.

-- 
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]