Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Avoid error/prompt reversal for mingw
@ 2008-03-31 15:29 Pierre Muller
  2008-03-31 15:57 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Pierre Muller @ 2008-03-31 15:29 UTC (permalink / raw)
  To: gdb-patches

   I am currently trying to 
run the testsuite of mingw target...
It is almost working now...

One trouble I found when testing this
is that gdb errors
are often misplaced after the return prompt for
the mingw built gdb.

  I don't know if this is really a mingw specific bug
or if it can happen for other targets,
but I found a very easy way to avoid this:
I simply added a gdb_flush (file) 
after the exception test is printed out.

  Is there a reason not to do this?
Or this is patch OK?

Pierre Muller
Pascal language support maintainer for GDB

ChangeLog entry:

2008-03-31  Pierre Muller  <muller@ics.u-strasbg.fr>

	* exceptions.c (print_exception): force flush of file
	after printing of exception message.



$ cvs diff -up gdb/exceptions.c
Index: gdb/exceptions.c
===================================================================
RCS file: /cvs/src/src/gdb/exceptions.c,v
retrieving revision 1.28
diff -u -p -r1.28 exceptions.c
--- gdb/exceptions.c    14 Mar 2008 18:57:43 -0000      1.28
+++ gdb/exceptions.c    31 Mar 2008 15:05:39 -0000
@@ -310,7 +310,7 @@ print_exception (struct ui_file *file, s
        }
     }
   fprintf_filtered (file, "\n");
-
+  gdb_flush (file);
   /* Now append the annotation.  */
   switch (e.reason)
     {







^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-03-31 16:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-31 15:29 [RFA] Avoid error/prompt reversal for mingw Pierre Muller
2008-03-31 15:57 ` Daniel Jacobowitz
2008-03-31 16:04   ` Pierre Muller
2008-03-31 17:34     ` 'Daniel Jacobowitz'

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox