From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x129.google.com (mail-il1-x129.google.com [IPv6:2607:f8b0:4864:20::129]) by sourceware.org (Postfix) with ESMTPS id 36BE83858C78 for ; Tue, 12 Dec 2023 17:44:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 36BE83858C78 Authentication-Results: sourceware.org; dmarc=pass (p=none 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 36BE83858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::129 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702403085; cv=none; b=edSaSkAC+ABsO54I5LFtFkFIaTHeckoGcQuw6MGQSUXxjjV9NBafNoa30P5c++Hmc6BKqd0CJX0I7Vzu90+5a7hveKD+ZeJgqLOOy79T4lw9iBR2MEn4UNjsMGPjHkO1FpPHZVIhVeCs2k1r8fCB+zpp/gSPjmWOHaj1XYKA7YY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1702403085; c=relaxed/simple; bh=9np4yqffKg0GM/75Wv2IgyphHMMzcan4xVd47NuVveY=; h=DKIM-Signature:From:Subject:Date:Message-Id:MIME-Version:To; b=VAfV3H6PP2zC7vet0SKcdpHquCddL0IVFrTgg/E9dqhaPO7JikaABbfaoKuRbuxkdFVKTOWBc5q/5fln4uhvuQ2Zvq/kbNkV4IKwoTZtILRefx4RROu7VeUP/8AAQYlHVtvPF7ck7ytvUWm1cKJWXsae6SZahebajhjwoPVGVPs= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-il1-x129.google.com with SMTP id e9e14a558f8ab-35d4de84195so24073865ab.3 for ; Tue, 12 Dec 2023 09:44:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1702403083; x=1703007883; 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=ItL3uTlD+aF8lXL78FzM9HgRAWtIXYDlmOnWT892dOg=; b=dcLp/umSZz5QRB/GKZVTAlDcTTs1U05Q/ONYvO3bcL0NP6ebVemiSrDfJnjsKls3Cj fxl9RKd8VipqOYgKqqhpIq4tbfQqGxFGlDsc1mMPFtlL1rhveMyfz3Er85N5PsPsMvkW pMOBDAvhlKXM2yJmRs0GxugtA9yRLyh8Ug0zDtf5psBnTAYeDmWeoTIRNLKdZRck7UD+ bN/mkpab78JTjdk5zsz0Ef5vLdQmKoGTQdQTUH68QhIadVhYjzANXkcYopAPgyZe0vJG HZj9M4dNF+149pe6SZd2zBPUmBpp/WFq/ntGVvb6UQY9dwBKRu8tU2zRENG6h5G57gSz vN6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702403083; x=1703007883; 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=ItL3uTlD+aF8lXL78FzM9HgRAWtIXYDlmOnWT892dOg=; b=hMudrPPOXMRnIK7z4fseSVixfVTcvZxuWGhGw9IxQYofsJWZXoYVRd/ZfzTAk3XHYb ds91A6lmdd3Ej0pRuh/+DxRO1MULbOB4HyDsgLQtuvgqpWCh4nQ4aOKMRjsBMxNNvaSr l9Wgvb7iWqUcYU2C9m1rBniVJlxE2YoOUITI3HoqH0Aq4e6CFnpp+HjR4nn7yjBCz9MI GFI+aDdH/8Xw3RjbvLyF1kaZEU/Xl2OidKc7oS3F4BOXMaep2oCThM6aOYXN8phz/6eF VxE4euen3gGyKv2MhHHsABGM/AXAIpHgWpwoK3jmfL16mjvJu5A8Yjc1kYDRL+bJGsKw nC0Q== X-Gm-Message-State: AOJu0YzZWP+WZGuhnOz3qOoFmJc+f7r4PCg7znc6GpR0JfOiqHJZh6uZ nkUoE58R5fhTZCwB69EItyjNv1Fzlsgaci/O0Nk= X-Google-Smtp-Source: AGHT+IHznv26mOETaOmUYm2cP2dNb6f0EuosjlxfG4mKo6ij7uYnhH31/5yUoPRTgw01Np77lwfSvA== X-Received: by 2002:a05:6e02:198d:b0:35e:6bbf:4e5a with SMTP id g13-20020a056e02198d00b0035e6bbf4e5amr7777570ilf.44.1702403083389; Tue, 12 Dec 2023 09:44:43 -0800 (PST) Received: from localhost.localdomain (71-211-161-25.hlrn.qwest.net. [71.211.161.25]) by smtp.gmail.com with ESMTPSA id u26-20020a02aa9a000000b004693a30f295sm2479819jai.170.2023.12.12.09.44.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 09:44:42 -0800 (PST) From: Tom Tromey Subject: [PATCH 0/4] Check for rogue DAP exceptions Date: Tue, 12 Dec 2023 10:44:41 -0700 Message-Id: <20231212-dap-no-test-exceptions-v1-0-af0e33f10093@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAmceGUC/x3MQQrCMBBG4auUWTtgxkrBq4iLafq3nYVpyAQpl N7d6PJbvHeQoxicHt1BBR9z21JDuHQUV00L2KZmkqvcggThSTOnjSu8MvaIXFvhLMAdcz8MQZV anAtm2//j56t5VAePRVNcf7u3ekWh8/wCcm1SlIEAAAA= To: gdb-patches@sourceware.org X-Mailer: b4 0.12.4 X-Spam-Status: No, score=-5.2 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: While looking into a question I got about DAP, I found out that the DAP 'attach' test had some unexpected exceptions in the log file, caused by an incorrect assumption in the stop event listener. This series tries to make the DAP implementation a bit more robust. After these patches, exceptions that are expected in the normal course of operation are not logged by default. Then, the test suite is updated to check that no rogue exceptions are seen. --- Tom Tromey (4): Introduce and use DAPException Add DAP log level parameter Avoid exception from attach in DAP Check for rogue DAP exceptions in test suite gdb/NEWS | 5 ++++ gdb/doc/gdb.texinfo | 18 ++++++++++++++ gdb/python/lib/gdb/dap/breakpoint.py | 12 ++++++--- gdb/python/lib/gdb/dap/evaluate.py | 12 ++++----- gdb/python/lib/gdb/dap/events.py | 43 ++++++++++++++++++++++++++------- gdb/python/lib/gdb/dap/launch.py | 7 +++--- gdb/python/lib/gdb/dap/server.py | 10 ++++++++ gdb/python/lib/gdb/dap/sources.py | 6 ++--- gdb/python/lib/gdb/dap/startup.py | 47 +++++++++++++++++++++++++++++++++--- gdb/python/lib/gdb/dap/varref.py | 6 ++--- gdb/testsuite/lib/dap-support.exp | 34 +++++++++++++++++++++++++- 11 files changed, 167 insertions(+), 33 deletions(-) --- base-commit: 80ffe7226459e3edf840d0c23462d93cb560d2de change-id: 20231212-dap-no-test-exceptions-2ee5ef4771aa Best regards, -- Tom Tromey