From patchwork Tue Feb 20 19:46:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 86075 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D91653858409 for ; Tue, 20 Feb 2024 19:47:01 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by sourceware.org (Postfix) with ESMTPS id 0C72C3858CD1 for ; Tue, 20 Feb 2024 19:46:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0C72C3858CD1 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0C72C3858CD1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::d2f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708458382; cv=none; b=cWnWGrKhnTvGqxb//AqUWSAjAXXMIk5oYxgEZr94AXYmvTu9OPE3ZZlfeV44nfV0Pc5l55le9glQhINGueRF47sKOmnvBmVXTtAkoDZC9gVID60TYBpACl2rGFo1DD9PxVUxKsV0TC1up7X2IzHqxNDFa755AvymS0gBXoU1llY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708458382; c=relaxed/simple; bh=PE6FMN8JF9htJOCoUHh2T+NubYNg/rPhxFz6gUlzQxQ=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=MfsCAlgtzQwcPCVlngDRvqAnE3j7uaN4Qzu5OS1ydWatcKCO6aT8boaI38hmKVWG4/ClQ4VHFAcLHTi/9RIZUIjqrzdJfSuUeGEBJDshVPwTRbE9F6fXugjZs4VOlUCE4XYkjc4IJyAIa9GdS1tSv74WQb9JwFfRzcB478fFd0Y= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-7c7674446c0so35647639f.0 for ; Tue, 20 Feb 2024 11:46:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1708458377; x=1709063177; darn=sourceware.org; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=D1GEiwcLLgEWu4FpIbbXq8Rl6VCVctLEIeK5OYhqEGk=; b=X24xVJughc7hCtouaFCQNkAGlykxkf2puD+KyCf/LHgZ9yPj7lS2GJ8mFX2y9FKm+6 skhKvzVTDrJUSek2P8BBU/ZlWrzE+XG37fh2FQW4ToqAm9hgMtyRTgGVgIKY4RAHw/WW qM7pCr/0WYdw81QkvPraeLsidX8jr5zoOyOmI2NQyrEFUrrs1jn7c+fhTy2Uw7fo+MZI 2e+Ey/G24LrtFzEKh0/hil2OYO0Zz/H4OLz5ljEMI/xhfz4SP03ekVWXafln7KWcX62Y aP2HRKH76N5Et98k7Qs/FB+ALL3ByqcGmYUBGEqAq0hSZdPKhjMOd8RZySgtZXOHDIbM Z8cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708458377; x=1709063177; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=D1GEiwcLLgEWu4FpIbbXq8Rl6VCVctLEIeK5OYhqEGk=; b=li7M6reW8e/yPRt/ZsTjnXueeoqwXByv46OKEIAykZUOiCkBJhphVLio/ndn+DCVt4 KWlyC950FVn64/pk9oA4y/oVA891euKOpiOcp1kQkap2O17hWW0vUi9mO0Yt6qNFsBMt Z5Tw83RCGEpWVtq202KY8hOzaGxt6wnIlyUDraELRxcsbmcihZfFQQaNlRFzyA3Vqz5O RDEFpv+K5dGX87bJ41etvT9eIlbKgOU08kLk+qT78vHHl5Yy2eQrLRaZYgwVV26U20Nk goXwQUXR0ZTxy6SJc8p9c3dz6xOL5Jw7GuTs9YLQquFf/9LiiP9fbkGoyH8qAkA9uTXT gZqA== X-Gm-Message-State: AOJu0YzsgmiUA5Ej9RsrHmXksJ70WFs7Fqu2jK0qSPxGgREbY/FMkqVk rlCoWWD1bjRJIOlY5alYfXW/hfXOTI7mnRUnN0ZeuYx22cUb84pL8+QsiuyGv6U3bEkVcEODVTM = X-Google-Smtp-Source: AGHT+IEEN8g6/eMb2YQTLGIP/G0EVwdtVZAX1m9P09pHYfFlnrrnJsKYCGC/vC9l+NTLENsbcNSumA== X-Received: by 2002:a6b:6c0e:0:b0:7c4:6b0f:ee7 with SMTP id a14-20020a6b6c0e000000b007c46b0f0ee7mr19193944ioh.7.1708458377248; Tue, 20 Feb 2024 11:46:17 -0800 (PST) Received: from localhost.localdomain (71-211-170-195.hlrn.qwest.net. [71.211.170.195]) by smtp.gmail.com with ESMTPSA id q10-20020a02c8ca000000b00474284a0228sm1261811jao.61.2024.02.20.11.46.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 11:46:16 -0800 (PST) From: Tom Tromey Date: Tue, 20 Feb 2024 12:46:16 -0700 Subject: [PATCH v3 5/5] Use the .py file in gdb.dap/pause.exp MIME-Version: 1.0 Message-Id: <20240220-py-simple-exc-v3-5-a2825caa4b74@adacore.com> References: <20240220-py-simple-exc-v3-0-a2825caa4b74@adacore.com> In-Reply-To: <20240220-py-simple-exc-v3-0-a2825caa4b74@adacore.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Tom de Vries pointed out that the gdb.dap/pause.exp test writes a Python file but then does not use it. This patch corrects the oversight. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31354 Reviewed-By: Tom de Vries --- gdb/testsuite/gdb.dap/pause.exp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gdb/testsuite/gdb.dap/pause.exp b/gdb/testsuite/gdb.dap/pause.exp index 4d13dadd3ad..9038d0f037f 100644 --- a/gdb/testsuite/gdb.dap/pause.exp +++ b/gdb/testsuite/gdb.dap/pause.exp @@ -134,7 +134,7 @@ dap_read_response cancel $cancel_id # does not continue the inferior) can be canceled. # -write_file py "while True:\n pass" +set gdbfile [write_file py "while True:\n pass"] set cont_id [dap_send_request evaluate \ [format {o expression [s "source %s"] context [s repl]} \ $gdbfile]]