From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) by sourceware.org (Postfix) with ESMTPS id C844D3858009 for ; Tue, 13 Feb 2024 16:58:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C844D3858009 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 C844D3858009 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::133 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707843540; cv=none; b=pLE+wHny4jJALGkfNSOSHES8kzMiMLwMP/MNdfD6T8Ibg+TaGjQfH6wg7a0zK+RUVwCe7zYWyjOzraiB6izuecjZMHbwMeZ9VVS4wrNNj0tfRV+zIBv0eGz9cIjuPl9yob3h2FFe/wJDQwNn4XezxLZwSDQQLQwOWdVc1AKuYa8= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1707843540; c=relaxed/simple; bh=SOo+7KEHjN1k+0pY6aADgMPazDvlRcEbm5oBbvhucY4=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=pKxJdwCfvj5xVdmXamPNKT8bIcCvjaShtF0zjN1CIZM9GvAw7w6bI2PgfUL2jsiGFhnXplqkw8njS5GL9qKlHGd+0/5cHu9uSHZi3b9pmMZduu1StlTqAjQERDn7mVb8UHSlAp8PdkMwwp3rqSa8nVQ00AqgWPXi+vkssFOSZE0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-3642147202fso1687115ab.0 for ; Tue, 13 Feb 2024 08:58:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1707843537; x=1708448337; darn=sourceware.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=kVfWaaBNVVZe0VCRbYUXBELiMBvXU2Cx0MGfxjpd74c=; b=h88O6yVIugqM7EE/QAAd4h3gI3BBe2Uo2T3+vhELd1jWjHXItyRB+7A9PQSAmSVT5s Hxd+P0GeS2AlPZkje9QgcKyF8iC+WV/2zLHW8KKo3zKkVEIAf2CmuwTqePAkrmhnOfaF xG0VQz/W2bUf7e3BHcWsfk5OlusXIQdV+/vZDw/ePrzBF9yI8DsJg3JvDXwBFRxXZPL2 3h1y//kLSVqARL2RiqmQ+oQiLNOZ6F2tsK7j5Pm4hzdCKUpK/2HH4U9QU4/b0AoUIXcF EkzJ1TDcMZ3tyK57jxEHyWuuBfztwLN9ngMQ7X7jJz6MdohRwLaLvcWmzmBoVlO4UpuH jW3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707843537; x=1708448337; h=cc: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=kVfWaaBNVVZe0VCRbYUXBELiMBvXU2Cx0MGfxjpd74c=; b=ht8y7xJHqay6L1lwrYO+fLDXX9dpTko1Ku/EX7FW01zIkeW5vzTlv3anFAwli4gCZk OezZNVRFfY0tLj1RYDTcVdQIEN1GgKgwJmkm7Vzd+xqEghAUWqCdkWeBI/Ie3AyRKBJS Ge4VGuLbL2J8cAAgYfyzaSnviabNSLiZ3sUQKa9GRBEkcpn+LAMvgJW5zeoh7dikECx9 U9S03ej0qr92U3vru6wSGFZ/7M4ZzksfVfV+S0mM3fKmeFQNrdfRv+ef6VBmqU8YN8x+ cK/b6geK2eTX2Q7ZCpbFVOzuyBswUfYGptu6z3bKH36XYxCUeCmxIX3qhSFlJ2QFziHq xH9Q== X-Gm-Message-State: AOJu0Yzf4R+ul5KjN6Gy0JRtdSP/IVbbF6Q6bExMamPeBunfr7quPX93 U06t7QcMd7lLZBQuKOS+zbZyEdpowxlFA16esGw1vh5yIWodBeMde1p4b+/ikSPQR/YwzIX7F/w = X-Google-Smtp-Source: AGHT+IHehkNZM606kWzBDadIm1luftZ4ekGfKAceDU0P/r5xJ2etJwHPAcX3C7RqeA3jh98gFJfFbQ== X-Received: by 2002:a92:c841:0:b0:363:ba82:c01e with SMTP id b1-20020a92c841000000b00363ba82c01emr236527ilq.8.1707843537041; Tue, 13 Feb 2024 08:58:57 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVDJM4grTF9g0KQvJMx9aXsEEpk7lh6H3Dxz3u+DI2jgfWejiXI/SepyINwNgCWAVMSGYKIcn7ZDs09bk7fJ77QcR13t5c= Received: from localhost.localdomain (71-211-170-195.hlrn.qwest.net. [71.211.170.195]) by smtp.gmail.com with ESMTPSA id bn29-20020a056e02339d00b00363c664cfeasm2622692ilb.61.2024.02.13.08.58.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Feb 2024 08:58:56 -0800 (PST) From: Tom Tromey Subject: [PATCH v2 0/2] Add "finish" return value to DAP Date: Tue, 13 Feb 2024 09:58:52 -0700 Message-Id: <20240213-dap-finish-v2-0-d507b889d735@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAMyfy2UC/22NOw7CMBAFrxK5xshegmJRcQ+Uwp8N3iJ2tI4sU JS746SmHGnevE0UZMIiHt0mGCsVyqkBXDrho01vlBQaC1DQK9Agg13kRIlKlAgOwtAbozSKNlg YJ/qcsdfY2NmC0rFNPh6J2ZYV+RAjlTXz9zyt+tD/9quWShq8KTMoNA7uTxusz4xXn2cx7vv+A 1tEhUm/AAAA To: gdb-patches@sourceware.org Cc: Eli Zaretskii , =?utf-8?q?K=C3=A9vin_Le_Gouguec?= X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-4.8 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. --- Changes in v2: - Simplified _FinishScopeReference per review - Link to v1: https://inbox.sourceware.org/gdb-patches/20240212-dap-finish-v1-0-8e30870e8b25@adacore.com --- 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 | 39 +++++++++++++++++- 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, 205 insertions(+), 20 deletions(-) --- base-commit: a16034bf6417dc2259fef43fd5bcc2dd1dac562f change-id: 20240212-dap-finish-e2b2d748801e Best regards, -- Tom Tromey