From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTP id 83DD93857010 for ; Tue, 25 May 2021 15:04:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 83DD93857010 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-252-z0GI3Y7YP7yqmyQHPwy9UA-1; Tue, 25 May 2021 11:04:42 -0400 X-MC-Unique: z0GI3Y7YP7yqmyQHPwy9UA-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 449E7107ACC7; Tue, 25 May 2021 15:04:41 +0000 (UTC) Received: from [10.3.113.123] (ovpn-113-123.phx2.redhat.com [10.3.113.123]) by smtp.corp.redhat.com (Postfix) with ESMTPS id D67A61001B2C; Tue, 25 May 2021 15:04:40 +0000 (UTC) Subject: Re: [PATCH] gdb: Don't change the uiout to console one when doing gdb.execute in TUI To: Marco Barisione Cc: GDB patches mailing list References: <20210520153722.17526-1-mbarisione@undo.io> <6f0cf89e-0eca-e8fc-5826-58937bdaad0d@redhat.com> <96BA3D72-D8A1-4053-B62C-6C0B7EAB176E@undo.io> From: Keith Seitz Message-ID: <986e2f69-c246-8138-76ce-57e5f6932540@redhat.com> Date: Tue, 25 May 2021 08:04:40 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <96BA3D72-D8A1-4053-B62C-6C0B7EAB176E@undo.io> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 May 2021 15:04:45 -0000 On 5/25/21 12:47 AM, Marco Barisione wrote: > On 24 May 2021, at 19:25, Keith Seitz wrote: >> >> We normally use gdb_test instead of gdb_send/gdb_expect. Is it not possible here? > > I couldn’t get it to work in TUI mode and I couldn’t understand why (but > I’m not an expert in TCL or how printing works in TUI mode). I will try > again as the test code is now simpler than it used to be while I was > developing the test and, if I cannot get gdb_test to work, I will add > a comment. That would be great. Thank you! Keith