From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 E3ED23858D38 for ; Mon, 12 Feb 2024 18:47:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E3ED23858D38 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 E3ED23858D38 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=1707763626; cv=none; b=fhCXtnIpahRiIbJ7hZmmoCohwdi2jCyjesLEeqK9fO/xLZQiuiC+0tS/xkoOxxaCo2f/atCTwRxcuHN2yke/Knz29/RykTQ6hEKUSRQKr4SA3d980qUxZ9336dNdAK1Uq/Q6uGBhJ5vvQP55aRFRqtaecNaRG0SqzJeukM8x2uc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707763626; c=relaxed/simple; bh=IIulIdZQaHVzx+cxhU4LSfhe56NI7rwj2PqY/IiMw7o=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=MCODBaj5aVHAsn6nJMHJGcQRPjzREUd81zF5lS5pmYri17rUW4J5FZOixca0W9GELPrDuJat2D8zK5qzag+cRmOeb3ydGHCPjZPMqtT+s4gUKuskt7W30pgn/t+xyhU7AnMWFwJVKt6oxmn/Hp2MMBfCp5IYZ0dh45DjTmnBTX0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-7bed9fb159fso148983639f.1 for ; Mon, 12 Feb 2024 10:47:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1707763623; x=1708368423; darn=sourceware.org; h=to:content-transfer-encoding:mime-version:message-id:date:subject :from:from:to:cc:subject:date:message-id:reply-to; bh=jrQEtKaqygPWIFv08cpILFpUo3T56d2q5L1Uty5lmvc=; b=ARkOghlohTq4N+w6xcghj+vmm6i9cNfPbhE2xYOn3nT9Q4qTHP6DtDoo6Oj1U2kHwT CgbefThDuvGVHIhSDUeVenMMdSOUUt4csqjb4Zvwrg5zBszK45Z4qckIr3vVcZ2A6LhJ JRdUcT+XYQ6J7I5gJv2k3/ZmReYgZ0iKfUW8eZyHJ1qDAoO1sp0os295PwIaA6yKyFVc VI7oriKHNWpfvydMTY8SicBIuaWUUinA69TKPdXrk6vBA4PQOrH5PI43yhMXDVFvSdqG 9RZoaGiKckIt2T0NUj9fIselZ9x5NC/ULtJcfl6/TVFomjqIIVA0mexoPd8GUmHl1fxo JoGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707763623; x=1708368423; h=to:content-transfer-encoding:mime-version:message-id:date:subject :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jrQEtKaqygPWIFv08cpILFpUo3T56d2q5L1Uty5lmvc=; b=DxALtzeAsVVS914920z+CDXWfp0VdLhp97S9q05d1+xn9uGhkM/0ERa0RIabe2X4PD qFX6lw1WBlxJ63Ix6cj2j8QpVaXMopKG/50wYGKuM7z/zYE/i0A4SzGzEExMq+fLES28 cws/jaD+kGJhvOlEGpq4d17+8cLFaYSHJlsIO+tORL76vRnDA0Q4tfdwYLzWIssb96Ik bSWCIUgVaF5rEdZ3ShSRnTRw/dPz7G95lrf7fyGbS8D4JU40Wtexvm9B6Z2iBdAAAdA1 wUXb49mXyndamFJsuKwJNwa/YHFLpNhs2+Jk3a7nAV1S8rBA9lhrN85SJPVoJcw5vv72 12UQ== X-Gm-Message-State: AOJu0YxeLxlmq6PbiEkl9IoSPEyTh5yKGUVT1hrwjy5WqfIWQh9LeyNe j2Dn9SewdofJYg128LwiKqpdriBF6UWYcomU9jbCYC6JTH3KdtJP3h8eDfNIBoXfCyC/G+9cRLA = X-Google-Smtp-Source: AGHT+IEY5ul+eaFsdWFPzmPehmFHXlqo3bnumRSalw64IYBy+aOcdr9eHEbxZ9Ss3wZcEgHE+Ot1DQ== X-Received: by 2002:a5d:8416:0:b0:7c4:4331:a9e8 with SMTP id i22-20020a5d8416000000b007c44331a9e8mr9502329ion.5.1707763623101; Mon, 12 Feb 2024 10:47:03 -0800 (PST) Received: from localhost.localdomain (97-122-68-157.hlrn.qwest.net. [97.122.68.157]) by smtp.gmail.com with ESMTPSA id ep15-20020a0566384e0f00b0047132ed4890sm1523547jab.105.2024.02.12.10.47.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 10:47:02 -0800 (PST) From: Tom Tromey Subject: [PATCH 0/2] Add "finish" return value to DAP Date: Mon, 12 Feb 2024 11:47:01 -0700 Message-Id: <20240212-dap-finish-v1-0-8e30870e8b25@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAKVnymUC/x3MwQqDMAyA4VeRnBdog6DsVcYOqY1rDuskERmI7 271+B3+fwcXU3F4djuYbOr6qw3x0cFUuH4ENTcDBeoDRcLMC85a1QsKJcpDP44hCrRgMZn1f89 e7+bELpiM61SuxZd9FYPjOAEKSYRydQAAAA== To: gdb-patches@sourceware.org X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 List-Id: This short series changes the DAP code so that it can access the return value from a "finish" ("stepOut" in DAP parlance) command. It turns out that the current DAP convention is to put this value into the local variables of the outermost scope. --- Tom Tromey (2): Export "finish" return value to Python Add return value to DAP scope gdb/doc/python.texi | 6 +++ gdb/infcmd.c | 17 -------- gdb/python/lib/gdb/dap/events.py | 3 ++ gdb/python/lib/gdb/dap/scopes.py | 45 ++++++++++++++++++++- gdb/python/py-stopevent.c | 23 ++++++++++- gdb/testsuite/gdb.dap/step-out.c | 36 +++++++++++++++++ gdb/testsuite/gdb.dap/step-out.exp | 82 ++++++++++++++++++++++++++++++++++++++ gdb/thread-fsm.h | 19 +++++++++ 8 files changed, 211 insertions(+), 20 deletions(-) --- base-commit: 25558d2fc0e8b77d4c522c322012b048db4c1485 change-id: 20240212-dap-finish-e2b2d748801e Best regards, -- Tom Tromey