From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5568 invoked by alias); 4 Oct 2008 15:02:04 -0000 Received: (qmail 5404 invoked by uid 22791); 4 Oct 2008 15:02:03 -0000 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 04 Oct 2008 15:01:28 +0000 Received: (qmail 28893 invoked from network); 4 Oct 2008 15:01:26 -0000 Received: from unknown (HELO localhost) (vladimir@127.0.0.2) by mail.codesourcery.com with ESMTPA; 4 Oct 2008 15:01:26 -0000 From: Vladimir Prus To: gdb-patches@sources.redhat.com Subject: Flush ^running Date: Sat, 04 Oct 2008 15:02:00 -0000 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_UV45Ijg7eeIhfSF" Message-Id: <200810041901.40210.vladimir@codesourcery.com> 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-10/txt/msg00104.txt.bz2 --Boundary-00=_UV45Ijg7eeIhfSF Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Content-length: 355 I've run into a case where gdb would not print ^running in response to -exec-continue -- at least not during the time frontend is willing to wait for the response. The problem only happened for my when gdb is driven by a frontend, not on command line; I don't know what frontend does differently. I've checked in the below patch to fix this. - Volodya --Boundary-00=_UV45Ijg7eeIhfSF Content-Type: text/x-diff; charset="iso 8859-15"; name="flush.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="flush.diff" Content-length: 1022 Index: gdb/ChangeLog =================================================================== RCS file: /cvs/src/src/gdb/ChangeLog,v retrieving revision 1.9872 diff -u -p -r1.9872 ChangeLog --- gdb/ChangeLog 3 Oct 2008 22:00:09 -0000 1.9872 +++ gdb/ChangeLog 4 Oct 2008 14:56:26 -0000 @@ -1,3 +1,7 @@ +2008-10-04 Vladimir Prus + + * mi/mi-interp.c (mi_on_resume): Flush raw_stdout. + 2008-10-03 Paul Pluzhnikov PR gdb/2384: Index: gdb/mi/mi-interp.c =================================================================== RCS file: /cvs/src/src/gdb/mi/mi-interp.c,v retrieving revision 1.35 diff -u -p -r1.35 mi-interp.c --- gdb/mi/mi-interp.c 5 Jul 2008 17:57:24 -0000 1.35 +++ gdb/mi/mi-interp.c 4 Oct 2008 14:56:26 -0000 @@ -362,6 +362,7 @@ mi_on_resume (ptid_t ptid) if (!target_is_async_p ()) fputs_unfiltered ("(gdb) \n", raw_stdout); } + gdb_flush (raw_stdout); } extern initialize_file_ftype _initialize_mi_interp; /* -Wmissing-prototypes */ --Boundary-00=_UV45Ijg7eeIhfSF--