From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5131 invoked by alias); 31 Mar 2008 15:17:03 -0000 Received: (qmail 5122 invoked by uid 22791); 31 Mar 2008 15:17:02 -0000 X-Spam-Check-By: sourceware.org Received: from ics.u-strasbg.fr (HELO ics.u-strasbg.fr) (130.79.112.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 31 Mar 2008 15:16:43 +0000 Received: from d620muller (laocoon.u-strasbg.fr [130.79.112.72]) by ics.u-strasbg.fr (Postfix) with ESMTP id A2B6318701C for ; Mon, 31 Mar 2008 17:23:39 +0200 (CEST) From: "Pierre Muller" To: Subject: [RFA] Avoid error/prompt reversal for mingw Date: Mon, 31 Mar 2008 15:29:00 -0000 Message-ID: <000601c89342$3eb4a590$bc1df0b0$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-03/txt/msg00502.txt.bz2 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 * 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) {