This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/15995] New: print and shell command output out of order
- From: "ahmedalmehdi at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 02 Oct 2013 19:03:51 +0000
- Subject: [Bug gdb/15995] New: print and shell command output out of order
- Auto-submitted: auto-generated
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.