From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id IJ7gK6YsOWZ/iQgAWB0awg (envelope-from ) for ; Mon, 06 May 2024 15:16:54 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=WpALzBEL; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 9562A1E0C1; Mon, 6 May 2024 15:16:54 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 2A8361E092 for ; Mon, 6 May 2024 15:16:52 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8C5F33858D35 for ; Mon, 6 May 2024 19:16:51 +0000 (GMT) Received: from omta034.useast.a.cloudfilter.net (omta034.useast.a.cloudfilter.net [44.202.169.33]) by sourceware.org (Postfix) with ESMTPS id 0A3993858D1E for ; Mon, 6 May 2024 19:16:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0A3993858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0A3993858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715022984; cv=none; b=Lj5Pob2CXtfzjNTTDjY8hqX0x+r8cq2qmRrHifoWRLujqcJG9Nipyts4ubt3byr/N1JVDAw2177ybQ95+Ih2anJiFQAC1Zs/c9No6eN1MORTcUqKaX5oUV9JvkSlEZA2o8FTvfQu3S46PUUAHmx3h2BsmOO0fHfRUS/dia6wOLc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715022984; c=relaxed/simple; bh=X8t4ORAjkl1tuKKyTCo+/ASXYsivVzU02U7ULvLcWBU=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QgYxJ+6GPefjqH3z5kGYFa41AbvlULnLrYT5zd4vUrK3+uBEnwvMspSxce+QilCEc/kiC72YzLCvbtMFaiOlocU/ekGJTPe8/SmNugVqn2R+Zl/Ob0zObKmJYDxoUTnCqII/uL0H31IYriRLNGSPaTNrHPmYtTiplhq8a4FL4W8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from eig-obgw-6007a.ext.cloudfilter.net ([10.0.30.247]) by cmsmtp with ESMTPS id 410bs0SvFxs4F43ozsEl86; Mon, 06 May 2024 19:16:21 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 43oysxRPHVden43oysWns7; Mon, 06 May 2024 19:16:20 +0000 X-Authority-Analysis: v=2.4 cv=M4FLKTws c=1 sm=1 tr=0 ts=66392c84 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=TpHVaj0NuXgA:10 a=Qbun_eYptAEA:10 a=8P9yrIRfAAAA:8 a=dB4AxVAn7sG8r0aBmnQA:9 a=QDITsWLpVu6j3kVAXn-k:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=eyXPlYcdXizTiAzD44u1C/VvnaO6s53WcycOLvI/5wc=; b=WpALzBELoS53LoaYZR2zdga3iC yD/WvSlMRmGCDWNmE0vqVkx30AEi4RxDOWUpCs8KGNu/zPjUmaVlGY8JzpLwPHEo/hzDMmnoIBUSt y/Na7CzSNap2rFGcGf01fed9u; Received: from 97-122-86-252.hlrn.qwest.net ([97.122.86.252]:49034 helo=murgatroyd) by box5379.bluehost.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.2) (envelope-from ) id 1s43ox-000pkA-2v; Mon, 06 May 2024 13:16:19 -0600 From: Tom Tromey To: Bob Rossi Cc: gdb@sourceware.org Subject: Re: mi, new-ui and the target In-Reply-To: (Bob Rossi's message of "Sat, 4 May 2024 15:55:12 -0400") References: X-Attribution: Tom Date: Mon, 06 May 2024 13:16:19 -0600 Message-ID: <87v83qagzg.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 97.122.86.252 X-Source-L: No X-Exim-ID: 1s43ox-000pkA-2v X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 97-122-86-252.hlrn.qwest.net (murgatroyd) [97.122.86.252]:49034 X-Source-Auth: tom+tromey.com X-Email-Count: 2 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfDjJ1jhxdKEhkVDX6t9Y6Z9KWoiMUHpIlvR3q7TZCxCm5M0cn+hMYIwMSD/RnYQwEB3IoqFLUeJXETVtp0w05W6OMepHtzSt7AiEGkA1Q8ax3/PeXTXS IjrALPM5x6sheCEBO5lOtbYxmS9+d859CJFQ6AktLSTTwgXkrnqXK1WC7atHzWSRmYb0CvUwEWecZQ== X-Spam-Status: No, score=-3014.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, JMQ_SPF_NEUTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" >>>>> "Bob" == Bob Rossi writes: Bob> My issue is as follows. When i try to take the target output specified Bob> by @ and display it in the gdb window within cgdb, gdb decides to print Bob> to stdout it's primpt (gdb), in the middle of the target output. Bob> So I end up with the prompt randomely in the middle of the target Bob> output and not at the end. Bob> Is there any way to synchronize this text properly? Bob> Please remember the point of the new-ui feature is to allow the user to Bob> type the commands they want, and have the front end run the commands it Bob> wants, in these should work together in a natural way. This appears to be a bug in new-ui. In particular, mi_interp::resume sets gdb_stdtarg but nothing ever resets it in this scenario. Could you file a bug report for this? I don't know how this code is really supposed to work. Maybe gdb_stdtarg* all have to be macros like gdb_stdout et al. Or maybe some command executor somewhere should resume the tty's interpreter before invoking the command. I don't really understand the design of the ui/interpreter code. To me it seems a lot more convoluted than is really desirable or necessary. Tom