Message ID | 20241121-dap-launch-v3-v1-0-c1fa046b3285@adacore.com |
---|---|
Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> 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 D1BD33857823 for <patchwork@sourceware.org>; Thu, 21 Nov 2024 20:39:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D1BD33857823 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=Clm3+FK9 X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-il1-x12f.google.com (mail-il1-x12f.google.com [IPv6:2607:f8b0:4864:20::12f]) by sourceware.org (Postfix) with ESMTPS id 5C768385802C for <gdb-patches@sourceware.org>; Thu, 21 Nov 2024 20:35:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5C768385802C 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 5C768385802C Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::12f ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732221320; cv=none; b=tZmkIG9gAlkK00DNwviiGlvhGW2U4nFiKPWMhqoOLeorH2qMUFE6sdPXNlMmlQeEHvRMyOZFNwcOmjNHMHRtscfRMqXLXgNrB+0XRdx3Djk7ReO6PlxiTivnDF2JGeJt2kxZ7LDI6DJtXyEzMT1tDHaL+7vsY/DZXwh1y/ag8BY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1732221320; c=relaxed/simple; bh=7M4W6KbNoUffpEpTOuRLPV7C3ZNQXm34z6yb2nbQkAs=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=c3jGbsCIa/3mleGQ2CvrROJzcRm7DaGqha7GTP3lA0gYIyd8VGadMHqZkD5GQCP2kryTvUMGzmxMwMZVuYzANykxDza2Gir38auTCONmJOtVppQiWG136fqFiyiLZZT4Das/A8m8aGfgNUme9dDwl43vm9/VaTRCSJyS+U+5dD8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5C768385802C Received: by mail-il1-x12f.google.com with SMTP id e9e14a558f8ab-3a73e045cf3so5439275ab.1 for <gdb-patches@sourceware.org>; Thu, 21 Nov 2024 12:35:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1732221319; x=1732826119; 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=J62SKSMw1spA5dvjUST0vWCTY8mdr5YAc4Xsb/gkhVg=; b=Clm3+FK9tLlfjBAd+NEW+eY2rSK1vdyNtQoSsmSDt9yOzF/l6KHlK1cIntZ5ANbQv+ fSbSt1RcTgbj9Gj04aBRLagcPIDxUSKQqIbwAYmDHRmO7QG88pZeIoNEeY7mCep16D5y cPyTgEW/cvi2MEbXvLZFNgPx59Iy+udordPPuPu8SvmEmYtS7lyDIioAvF8W3RwGYMi7 xqJR6PdlSw46c1k/AEelMyFoN3QoDc1RSkGbMxsG0bz71Dxv71BnHnB7T4A3dfxHLZ/o 2/EcV63YRk8Qgskt6UAgqNxz0aXC+43CaWNC6OI5ZKCRYdkhJQReDaxPvGziPCwYBKBH fBPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732221319; x=1732826119; 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=J62SKSMw1spA5dvjUST0vWCTY8mdr5YAc4Xsb/gkhVg=; b=kmEeLGEdGFy3JCryMDPS1W2uMcsxXnAZKp8zbVr2tu+nbC5xkfYa3JGv7lNVGSDCui FT7J2MwGiCNfslon+/02krBlxKWfaCiCvu06amYksz/cNXOIX/YmdQVYP0wGd0p+1F4Z ywZroQGjgdeQVKfK2P1Z9mQ67NBXYcJz4fKEV7pxaDtdwQTDCN29oHSPAlrvZJMHM3hy e+nSb35NLHwx7JqaTXB8tFB1EGo4mvv+BwXk8rxU5yviM37+RJiMZcX7z89yh+y6p9ho ZXm6PbgS8w0rlqlWyLXyh7Fn3DZgYOJ6HtwgRVwjgiEBmALvXsx0+PAmP3yVmkLQfKb6 Ku0A== X-Gm-Message-State: AOJu0YxUlFl7ZJuscx7py55esL46Nw4qvuuypanrDT3pRYs6BtzIlFCs SwA1zxsNqfo9HRWuKaL1Jgrjd+oivxiCM2PeOudKwSghabHG1XSK0habc3vNjU0JRkXQG3Emghk = X-Gm-Gg: ASbGncvXQMHlD5IMj57ND7RusPs8SZHe6ntDMCUcZ24puvyw9PmjdFVCRJgZsczqsxS Vb/YnQ4QmBMbRZ95kmSaInxjthv0aQCVlyK+8P5VDRbXXZOEmBw6yTuqN6lw8t/CvD9ezV8i6v3 c+0YBWtD0dwJNSzf09S6P/DH8oLlJwLuDD0JpsV+eALyupdZCqzYE+iJ/cRZZQaLvn+qdi+wnxP BVasWYymtIj08tHL/tyynJ9/4TCaunNp5MBElDZcgP+bOCoJqmtV4lTfq9/NcsnuCJIFCW8IIbY FrBPUrOZb0390JiM X-Google-Smtp-Source: AGHT+IHMrqZfSNVTfXY2eW+L1m/Mc56WZURNGaI1EUPipGYy+Oy0OPuj528qqlIulzw02TDjnoccOw== X-Received: by 2002:a05:6602:3c8:b0:83d:e526:fde7 with SMTP id ca18e2360f4ac-83ecdca5850mr43304539f.6.1732221319558; Thu, 21 Nov 2024 12:35:19 -0800 (PST) Received: from localhost.localdomain (97-122-113-155.hlrn.qwest.net. [97.122.113.155]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-83ecd43fb95sm9263139f.51.2024.11.21.12.35.18 for <gdb-patches@sourceware.org> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Nov 2024 12:35:18 -0800 (PST) From: Tom Tromey <tromey@adacore.com> Subject: [PATCH 0/7] Rewrite DAP launch and attach implementations Date: Thu, 21 Nov 2024 13:35:15 -0700 Message-Id: <20241121-dap-launch-v3-v1-0-c1fa046b3285@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAIOZP2cC/x3MQQrCQAyF4auUrA12RqvoVYqLpI1tQKcl0SKU3 t3o8oP3/hVcTMXhWq1gsqjrVAJpV0E3UhkEtQ9DrvMxpZywpxkf9C7diMsBOV/Op6ZhplRDfGa Tu37+vfYWZnJBNor5rzKZDlr2T/KXGGzbF9ev3Hl/AAAA X-Change-ID: 20241121-dap-launch-v3-b297655bba10 To: gdb-patches@sourceware.org X-Mailer: b4 0.14.2 X-Spam-Status: No, score=-5.3 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 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 <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
Series |
Rewrite DAP launch and attach implementations
|
|
Message
Tom Tromey
Nov. 21, 2024, 8:35 p.m. UTC
This series rewrites the DAP launch and attach requests, in keeping with some clarifications that were made to the protocol. --- Tom Tromey (7): Reimplement DAP's stopAtBeginningOfMainSubprogram Reimplement DAP delayed events Add call_function_later to DAP Refactor CancellationHandler in DAP Allow cancellation of DAP-thread requests Add DAP deferred requests Defer DAP launch command until after configurationDone gdb/NEWS | 6 + gdb/python/lib/gdb/dap/launch.py | 150 ++++++++++++++----- gdb/python/lib/gdb/dap/server.py | 229 +++++++++++++++++++++++------- gdb/testsuite/gdb.dap/ada-arrays.exp | 7 +- gdb/testsuite/gdb.dap/ada-nested.exp | 7 +- gdb/testsuite/gdb.dap/ada-scopes.exp | 7 +- gdb/testsuite/gdb.dap/args-env.exp | 7 +- gdb/testsuite/gdb.dap/assign.exp | 7 +- gdb/testsuite/gdb.dap/attach.exp | 19 ++- gdb/testsuite/gdb.dap/basic-dap.exp | 7 +- gdb/testsuite/gdb.dap/bt-nodebug.exp | 7 +- gdb/testsuite/gdb.dap/cancel-launch.exp | 56 ++++++++ gdb/testsuite/gdb.dap/catch-exception.exp | 7 +- gdb/testsuite/gdb.dap/children.exp | 7 +- gdb/testsuite/gdb.dap/cond-bp.exp | 7 +- gdb/testsuite/gdb.dap/cwd.exp | 10 +- gdb/testsuite/gdb.dap/cxx-exception.exp | 7 +- gdb/testsuite/gdb.dap/disassem.exp | 7 +- gdb/testsuite/gdb.dap/frameless.exp | 7 +- gdb/testsuite/gdb.dap/global.exp | 7 +- gdb/testsuite/gdb.dap/hover.exp | 7 +- gdb/testsuite/gdb.dap/insn-bp.exp | 12 +- gdb/testsuite/gdb.dap/lazy-string.exp | 7 +- gdb/testsuite/gdb.dap/log-message.exp | 7 +- gdb/testsuite/gdb.dap/memory.exp | 7 +- gdb/testsuite/gdb.dap/modules.exp | 7 +- gdb/testsuite/gdb.dap/pause.exp | 7 +- gdb/testsuite/gdb.dap/ptrref.exp | 7 +- gdb/testsuite/gdb.dap/remote-dap.exp | 10 +- gdb/testsuite/gdb.dap/rust-slices.exp | 7 +- gdb/testsuite/gdb.dap/scopes.exp | 7 +- gdb/testsuite/gdb.dap/sources.exp | 14 +- gdb/testsuite/gdb.dap/stack-format.exp | 7 +- gdb/testsuite/gdb.dap/step-out.exp | 7 +- gdb/testsuite/gdb.dap/stop-at-main.exp | 7 +- gdb/testsuite/gdb.dap/terminate.exp | 7 +- gdb/testsuite/lib/dap-support.exp | 33 +++-- 37 files changed, 518 insertions(+), 210 deletions(-) --- base-commit: 978324718990b6b371d4eeeba02cfe13a0ebf120 change-id: 20241121-dap-launch-v3-b297655bba10 Best regards,
Comments
Tom Tromey <tromey@adacore.com> writes: > This series rewrites the DAP launch and attach requests, in keeping > with some clarifications that were made to the protocol. > > --- > Tom Tromey (7): > Reimplement DAP's stopAtBeginningOfMainSubprogram > Reimplement DAP delayed events > Add call_function_later to DAP > Refactor CancellationHandler in DAP > Allow cancellation of DAP-thread requests > Add DAP deferred requests > Defer DAP launch command until after configurationDone ACK; sent some musings but nothing seems show-stopping to me; thanks for breaking it down into these incremental steps. Thanks also for the references in the last commit message. Cross-referencing the changes with PR dap/32090, microsoft/debug-adapter-protocol#497, the new § "Launch Sequencing" spec section, I think it all makes sense. Reviewed-by: Kévin Le Gouguec <legouguec@adacore.com>
>>>>> "Tom" == Tom Tromey <tromey@adacore.com> writes:
Tom> This series rewrites the DAP launch and attach requests, in keeping
Tom> with some clarifications that were made to the protocol.
I'm checking these in now.
Tom