From patchwork Tue Feb 27 14:45:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 86453 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 4004C3858286 for ; Tue, 27 Feb 2024 14:47:07 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-il1-x135.google.com (mail-il1-x135.google.com [IPv6:2607:f8b0:4864:20::135]) by sourceware.org (Postfix) with ESMTPS id 764BA385840B for ; Tue, 27 Feb 2024 14:45:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 764BA385840B 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 764BA385840B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::135 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709045158; cv=none; b=eEFgz3QMnQ9w/uXwUCTcZdxTeTKIdW+cT0sEyjNQ+k5cn4MkxgxwCL77Tlhm0vbzBrKlmm+Q35bWR8gTyxsSQCFtcSPSUjTIg9/HyebM7sWhhdvfiAxsclhvtTO7it2ezp4X0jM1VRLy5VWTjl06tWS/so8+4inocXKyIjsOK1A= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709045158; c=relaxed/simple; bh=FCI0yz+VMH1JiS5Omy6vcNgNs1I8l0lwHala/Y5bqzw=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=U6HNljdL1vDTEMXmzehvbVD3YirZ+cpYF+/i9zvHZN0HjErYIqaiMxSyCTj1ugxawKFDmQqCdd8W3hhNKX40bDgvf3ooRuZAuPnCuGXatmHGA1iSbjGSuxLFf9iwiGYI9AD0AxWcixUiyIYtYwEZsLpocjLKGltY+bZxnfxGNjU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-36576cf5fe0so12373995ab.0 for ; Tue, 27 Feb 2024 06:45:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1709045156; x=1709649956; darn=sourceware.org; h=cc: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=vYVnFWQMTvDYVcNhvs2hQUBtiXnnnwDeK/x3wJGlMwY=; b=RKcNxP+uLTf9YOfEpyGuuqHLnm41b7+8fFFnjziHldasNX0bSTlb2uCU4BoEMD0ZOo QMpnVa6boS4sWORNpDgpZynzT16jbTTiQ8Cg4MxKG6udDu9OxDpD6/jr1QXBfED2rtNy PimO0zpBhAc/NmugE47ZrN16hnvdnGWhzc+IJfi9bpWJrVl2rk+E11WATisVyOmNOZQz 1k11m+BkO7KhWjiej1SgNOHusYQlOQkHSBzix8uwxTSXkN12+efidQv8qWHl/L3xfHxr 6gTA6ajKUlnLbdM7S9s7fEdWCXMgLG3fJjFeTeuNosItI5QfYaEwCaORCFrkTPD9nE7P JtfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709045156; x=1709649956; h=cc: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=vYVnFWQMTvDYVcNhvs2hQUBtiXnnnwDeK/x3wJGlMwY=; b=j3EAdhTuPY8CXo+BLotkq11uWNYi6edfT/BeDgUGXCkJ0fcN+vXAX6CJFPywFPFL0e dUmSGhiQiJ4X331Xi7/M3KQY/HIkl66UguXgJAwZn98v/9aE9al/EPkXXgyubc+bn5Ov bW8TYmAn6zLKJTXGvqQSGIkFTUtFBFKwDec6g/X4LIkJQYZERVWljgv5C8nki59OgZ4i V+KDoLG/au3oVARAJ8Iv67Qa5rJcJGaIAPvpcbY/lXZw3DHeYBgvzWiJQxG0QROOeAVd T+t2ezguwObI4iQYAi2baNnaD8eocuDvcmQ6iN9MurYYSdO1P52hmkZvYYsUA/THpwda 9l6Q== X-Gm-Message-State: AOJu0YzBWg62RyPjpsTIppNWvXvSsMijquloQ1nt7IzMhKmtzivW2Oz+ ZqHHF/G6++csdrKeW9BRVJZCz7IccszS/0+gh7aIcDXe9y193DInyX3HGQ5RPx1V/r6pgsN3Pdw = X-Google-Smtp-Source: AGHT+IFJq64JN98v/VebCtI4HLl8qys9g27JdQqMWDU45W/7eWRwpS3yY956amnqiT1W3xWUc+VWnA== X-Received: by 2002:a92:d448:0:b0:363:b8fb:fcb7 with SMTP id r8-20020a92d448000000b00363b8fbfcb7mr11134742ilm.16.1709045155736; Tue, 27 Feb 2024 06:45:55 -0800 (PST) Received: from localhost.localdomain (71-211-170-195.hlrn.qwest.net. [71.211.170.195]) by smtp.gmail.com with ESMTPSA id bm9-20020a056e02330900b00365374d2143sm2212686ilb.5.2024.02.27.06.45.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 06:45:55 -0800 (PST) From: Tom Tromey Date: Tue, 27 Feb 2024 07:45:52 -0700 Subject: [PATCH v4 4/4] Use the .py file in gdb.dap/pause.exp MIME-Version: 1.0 Message-Id: <20240227-py-simple-exc-v4-4-3341d342c126@adacore.com> References: <20240227-py-simple-exc-v4-0-3341d342c126@adacore.com> In-Reply-To: <20240227-py-simple-exc-v4-0-3341d342c126@adacore.com> To: gdb-patches@sourceware.org Cc: Tom de Vries X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-11.5 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]]