From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id hKuJB8CSNmb7LAYAWB0awg (envelope-from ) for ; Sat, 04 May 2024 15:55:44 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=brasko-net.20230601.gappssmtp.com header.i=@brasko-net.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=vauWOzQz; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 0DBA41E0C1; Sat, 4 May 2024 15:55:44 -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 C21DA1E092 for ; Sat, 4 May 2024 15:55:41 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id CD9F53844073 for ; Sat, 4 May 2024 19:55:40 +0000 (GMT) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by sourceware.org (Postfix) with ESMTPS id 7042B3858C53 for ; Sat, 4 May 2024 19:55:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7042B3858C53 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=brasko.net Authentication-Results: sourceware.org; spf=none smtp.mailfrom=brasko.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7042B3858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::32a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714852518; cv=none; b=DRVAPntVXSov/kskFwOJJccKBlQ7E2PxbJAzj6FZCZv1qTRl1bbxHKoz+m1c3EtYueyGJUjnxohQlxNl77WBEMpyBynHjoEqdvmjzshNY661Z6zw09f2h3CcX43q78ptg4VsI+RiEge4JCwQvnfZS6vocRDOKxfwcLlsrIsBzuE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1714852518; c=relaxed/simple; bh=6QvkYP6fNhutbls+UA1SmOdGZUtl3r7n13+AAjj/bNM=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=KfO5kGGEXlX9TfhRkM1URuY9KTuozvWeOOccc0WsWmToDq7yQ5j4cisBDZ3KEKTw4IIlvXq2htZCuqxHCAXZC0Z0vYEDJOsn/HrLHtEwsM8rcBIG9tzlLWQqolxiUHanPFw2E7lpQ87/Hfj0Emy1jjDFtMLyF4kze25yKUkC+Lg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x32a.google.com with SMTP id 46e09a7af769-6ee2d64423cso550002a34.2 for ; Sat, 04 May 2024 12:55:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasko-net.20230601.gappssmtp.com; s=20230601; t=1714852515; x=1715457315; darn=sourceware.org; h=content-disposition:mime-version:message-id:subject:to:from:date :from:to:cc:subject:date:message-id:reply-to; bh=JW3os9uVSPqBGKMj+gdSBNOvL7AjxC58cOH4d+msy5k=; b=vauWOzQzJf2iprpWG51z7vZihgqCScfz9fFhB0VtOuD20MoBUmGsBQyi8Cv4cyEulc pD/UoxgbvPuNdqROnxlxr9WMtSuWFVm0NKtlzndSJx44myEeJLv6N4w3HL/RVsHpd0g5 73hZEvPTXE4M0lKKIZyhG++1DK/Bsluboe7TNH/o268mXmhvWkOhCzE0/m3/GfRho2Nd ORSzGcdou/1AhWjlA4ekqtdTBuxH0/jnvERbt4OoY9UboL9Qcwe69D2jDUd8wvjIFevN c6cyFwtlM72RqeT2cUiEd2I+W36z7J9M+1snAhZ0V7pBW+WRO126K8JzEhZ+ipFNRm8h 9uWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714852515; x=1715457315; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JW3os9uVSPqBGKMj+gdSBNOvL7AjxC58cOH4d+msy5k=; b=vIDEK9XEG6ajWPNv+ot9c6hmOMRafhnU3/iK4j2aYU1fpPEkHgtknI7nc+7+qHstyS GBx20NPYq+HS6cdcuiniFkBX3QcxpvIaxhuRsQQa7XQmBXY1X6UQVnGZpm8N8bqzthfV oDi1/itnLkfwozKPyoNUYjRqOIKPb264UpAh7cZNvtviEqXipPJ0BC3+OWEQgOqyDQ7v y2IQ04eUANPQ+Ot/miJdgFejhSpFCLxVwbU7URuBsdKP/mE3D8ilU0RE8OXF6Fjl5szP jVjS9FN8g/XYsdilKx1ZtRkmF4qwYL+1TL1RtDSMN9X9Q10UySXW+4aWCgZBCNeHuqyB DCGw== X-Gm-Message-State: AOJu0YwGGJindhDvzgF0yTwzFFLc43o2nmD3arHRsfSozXDWIH8wAgJf L4MC+MUlqi5tjSGSZ3tPfL1EHXbPETibu9mMswhILIVgJKKGaaXXyE9wPFjK7N1aiuzzOqQG8LF F X-Google-Smtp-Source: AGHT+IHd4Z9LzDk+9C+nQmk6wbxZfwrklxFqGq3PcxgPdyKXedC1LhRWk7KlmHHnN3hu5XBo7bTHYA== X-Received: by 2002:a05:6808:1719:b0:3c3:d80c:ee5f with SMTP id bc25-20020a056808171900b003c3d80cee5fmr8609543oib.51.1714852515005; Sat, 04 May 2024 12:55:15 -0700 (PDT) Received: from zelda (pool-108-12-199-157.prvdri.fios.verizon.net. [108.12.199.157]) by smtp.gmail.com with ESMTPSA id mh9-20020a056214564900b006a0fc20656csm2374074qvb.105.2024.05.04.12.55.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 12:55:14 -0700 (PDT) Date: Sat, 4 May 2024 15:55:12 -0400 From: Bob Rossi To: gdb@sourceware.org Subject: mi, new-ui and the target Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE autolearn=ham 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" Hi, I maintain cgdb, a curses based front end to gdb. I got a bug report here, https://github.com/cgdb/cgdb/issues/352 that i'm trying to resolve. In one terminal i run valgrind --vgdb-error=0 ./main. In another terminal i run gdb --ex "new-ui mi /dev/pts/12" --ex 'target remote | vgdb' >From a 3rd terminal i run 'tty' to get /dev/pts/12. Now, when i run 'monitor help' from the gdb terminal, i get this: (gdb) monitor help (gdb) please note the second prompt displayed by gdb. In the third terminal, represented by /dev/pts/12, i see the proper valgrind output. For instance, @"general valgrind monitor commands:\n" .... @"\n" please note, it does not end with a (gdb) prompt or with ^done. My issue is as follows. When i try to take the target output specified by @ and display it in the gdb window within cgdb, gdb decides to print to stdout it's primpt (gdb), in the middle of the target output. So I end up with the prompt randomely in the middle of the target output and not at the end. Is there any way to synchronize this text properly? Please remember the point of the new-ui feature is to allow the user to type the commands they want, and have the front end run the commands it wants, in these should work together in a natural way. Thanks, Bob Rossi