From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id nBAcLuc+OGWSBzYAWB0awg (envelope-from ) for ; Tue, 24 Oct 2023 18:02:15 -0400 Received: by simark.ca (Postfix, from userid 112) id B307B1E0C1; Tue, 24 Oct 2023 18:02:15 -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 A3B811E091 for ; Tue, 24 Oct 2023 18:02:13 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 24B4C3858CDB for ; Tue, 24 Oct 2023 22:02:13 +0000 (GMT) Received: from muller.mulle-kybernetik.com (muller.mulle-kybernetik.com [138.201.123.71]) by sourceware.org (Postfix) with ESMTPS id ED3A23858CDB for ; Tue, 24 Oct 2023 22:01:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ED3A23858CDB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=mulle-kybernetik.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mulle-kybernetik.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org ED3A23858CDB Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=138.201.123.71 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698184919; cv=none; b=WmL2Lgie9ECmEy+1VjEcLyiCjTjdnqB4/CNhAHB97ApOUc28bgQ0KgnfGt+AeG9lYpf1VUlRPvUD/brvW/m8M9ydbPQrBx1aa4HV4u3B/Iy3Bm/H/1LZPb+/af/pRAlxN2OZbScdfyJD+RS0lHJtiwrg/pTSBTnI+9MZlJEsb6U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698184919; c=relaxed/simple; bh=8aI/IZDyyOZH9/vD/I2ADVrecXgDUx2WkE9lcmXpNOk=; h=Message-ID:Date:MIME-Version:To:From:Subject; b=hZgHB3b0FBm5Oi/lGmKd/F5o1RfLYodHkQdhSU6a5G9qO/f24IHUvQ+1lfR3ivXlk0XZFlOaAF6AOhps/KV7/pla2s2Bzs0EXWPFTkFoROSp+eLl2FAfpIWNlizBscXKNKlIqcvdjIt1ywmM/qZpb7+i95y33WQC5nu7lugRkY4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: (qmail 24936 invoked from network); 25 Oct 2023 00:01:56 +0200 Received: from unknown (HELO ?192.168.2.32?) (nat@138.201.123.71) by mail.mulle-kybernetik.com with ESMTPS (TLS_AES_128_GCM_SHA256 encrypted); 25 Oct 2023 00:01:56 +0200 Message-ID: <12201efb-e4dc-445f-8b89-f4e354876d1a@mulle-kybernetik.com> Date: Wed, 25 Oct 2023 00:01:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: gdb@sourceware.org From: Nat! Subject: commands can only be added interactively to a watchpoint X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HTML_MESSAGE, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.30 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 think this is the same problem as https://sourceware.org/bugzilla/show_bug.cgi?id=10079, but this bug is so old, it's probably forgotten. I would like to run repeated tests through valgrind, where I am setting two hardware watchpoints and log the changes. So I have tried this commands.txt: ``` target remote | vgdb b main c n n p fifo watch -l (int64_t [2]) *&fifo watch -l (int64_t [16]) *&*fifo->storage set logging enabled on commands 2   continue end commands 3   continue end c monitor v.kill ``` That could work, if 'commands' would work in script mode, which it doesn't. So each run I have to do some tedious typing. If  only I could do something like this... ``` commands 2 --script "continue\nend" ``` Ciao    Nat!