From patchwork Fri Feb 16 18:37:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 85897 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 148F63857B98 for ; Fri, 16 Feb 2024 18:38:52 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by sourceware.org (Postfix) with ESMTPS id CE25B3857B8B for ; Fri, 16 Feb 2024 18:37:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org CE25B3857B8B 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 CE25B3857B8B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::d2a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708108676; cv=none; b=JQzBCdAflqq5W1SNfg3kDBHdLoKtYVB4DrqXR0bTijcsqmglZH+GgJuOctpJRrHC8CIvUeWpIvcbNJy+mSmu8kcd71Sxba0WxOPJmavendZzx5heVTyjlJPezDvFSR9olCfAuJCftlYGmeU5Jy/fqYe40I/LEBcuRgns6Nosn2k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708108676; c=relaxed/simple; bh=PE6FMN8JF9htJOCoUHh2T+NubYNg/rPhxFz6gUlzQxQ=; h=DKIM-Signature:From:Date:Subject:MIME-Version:Message-Id:To; b=RrSVqDMs2YHIud/W3C8JhrMTTgk0TZLl6ApmRMBI6KjQD2CnCHQ40tmPYpvSkoFoijdXc69UMW/TVjb1KwE5Nf8dsrBfsh/vj9Ftkv+R1qpTd5wXrCC+MwXpINO/kEsAy4/IRgfvrJhXzQxpJGSxeg8I3aE0RJ5IqcRk8M2lFHw= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-7c488a5af5eso62998739f.1 for ; Fri, 16 Feb 2024 10:37:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1708108674; x=1708713474; 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=G52i3FlMAXsr8fkB5jTKY8r5U/prJAawALwM1uuuiSwCSqOCF2WrBd9zVBhMt+RnCy 25YnwAhP1n9g0hjti7TasePFYhnQNKxuuRhWaBMxcYMzg0dDMdd5JRHgHCQIOqDxJu8S K1yQjIqGp5upUhIQhIfB2IeAr+y1V1IDMuPcJxjWYVtw46HPQZElp9T+/L73jSmEHDsh VB/xny3+bWphGY0UvC+zVtQ4NtalWh8PLctB5gxUEZzlHVb7vWaDa6symUPQGp+BZt4r JmRevwQxP19soMBtV02xYJpuhjfeETlWzLvpka+ux17pAcfjClTNXWEE38E2jbhPRGCi G8Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708108674; x=1708713474; 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=qNNF/l5r8j/nrMXjlEt7rkUhMa7gJkjFLhUyjEBJfnhwTeDS3DptFSbzaiLOR4jVhm SS6tlDHiDE+ol2MklJew5ueCeHUk+E/7dtbCxwlN8gR/tYPv/qicVDAegXNIB6vv3qQT ixwhKiS78n1vrk8AGMAk9Z731529f9vf33C5GOKN6KYug73djm8xev+CpsqJTyMqx/ky lRuwo8CIyfE//F//JmNOL63X+Y5c49M+Fspn0ixLK2Ojbjb4g06TYpX8GUhtOPctxkB/ 5UrLQDx22+eKnqGWFkIqffE8/91p7jY5uucHqlxk0g8oo4Nka1ktUQSreDcgiX+J+sqZ d9NQ== X-Gm-Message-State: AOJu0YwYd4NCBDEAc3u3/ONOmM9gb2h/jBuz4FqsBUdFkJ3tygMaZY8F qzjWAvaN4FxOdqhm1gvbUj2G8vCEA/M6qZITdn8GUtovdMCKJx0sKLvNuER35Xl69zL65kDHI9o = X-Google-Smtp-Source: AGHT+IHCFQLQtyKfeO79BIQxN/IAQrGlJrj6qNVwQMcz9EGa+vaLF7x5psZHEz18iiL04FhZ/tr2GQ== X-Received: by 2002:a6b:7112:0:b0:7c0:135e:d754 with SMTP id q18-20020a6b7112000000b007c0135ed754mr7374738iog.7.1708108674054; Fri, 16 Feb 2024 10:37:54 -0800 (PST) Received: from localhost.localdomain (71-211-170-195.hlrn.qwest.net. [71.211.170.195]) by smtp.gmail.com with ESMTPSA id g20-20020a0566380bd400b00473eb9f9afcsm104724jad.61.2024.02.16.10.37.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Feb 2024 10:37:53 -0800 (PST) From: Tom Tromey Date: Fri, 16 Feb 2024 11:37:53 -0700 Subject: [PATCH 5/5] Use the .py file in gdb.dap/pause.exp MIME-Version: 1.0 Message-Id: <20240216-py-simple-exc-v1-5-c275bcfb5e4a@adacore.com> References: <20240216-py-simple-exc-v1-0-c275bcfb5e4a@adacore.com> In-Reply-To: <20240216-py-simple-exc-v1-0-c275bcfb5e4a@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 --- 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]]