From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd29.google.com (mail-io1-xd29.google.com [IPv6:2607:f8b0:4864:20::d29]) by sourceware.org (Postfix) with ESMTPS id AECE83858CDA for ; Fri, 28 Jul 2023 17:09:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AECE83858CDA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-io1-xd29.google.com with SMTP id ca18e2360f4ac-7835e2286c4so97967339f.1 for ; Fri, 28 Jul 2023 10:09:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1690564157; x=1691168957; h=to:content-transfer-encoding:mime-version:message-id:date:subject :from:from:to:cc:subject:date:message-id:reply-to; bh=HE8XGlpt6LK2iuXSAvvO7EZdt/W/w7j64MddOCQVeN4=; b=RTHcolVTvOoHYiTMY+mfvnbpvlawLhcWNlt+0qOPhPYB2FFe4fGoeN5U7Oi4mp5WGE rCnDtp1/DoLpiC+CFAk8dSY+vNKm7XvN6qWRiyN31qZRx1NBvyc/thVmemWssLKX/UVz L4iL37S3rLO5Vyc9hCBIOGnmZ0fKQddru+NhLwl8MvvCg1DLLbpxnZbaOcJBHKsgPimx o5ULkLaTYd8Sd7Np0NN4AGzhSLNN6VBu+pPJ/F5827I59Jdp5LfKVAbUN9z+5t4is8ZL RU0+7bIzfrBXdrLrgVLWKkbDqwCotPZDq1lUwRtHGyOmbzq7Bwl5vXgGPxdK5J5GjYaI JDTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690564157; x=1691168957; 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=HE8XGlpt6LK2iuXSAvvO7EZdt/W/w7j64MddOCQVeN4=; b=bUk/PNxXiZxcbgqItFG7zH8Wml6F38C+6OSkSXaX3s5FEZ388OjE3619w2KPfcOmww IpUg5Uy19yvtIOwN+Bh0RJO1LOSJLMU2qsyVgQV4+7GfWwC8Zcr4u1BKyve9FBPH21e6 XQ849x1adKVy6/Tg7jDlLIjWQJzIt1bz2JTnB2bffvmoNhKeJTSUesfHSXHkjLzxhqcP SVAEmEZzEYITW148povC3M1KOO07+2sDUgSEZRwjdDO3fQTfY8MKfKl4J9e0k1xq4pfL 1r7ZUSZXmJjcnwLJU1zpV/v2Rl5GDMpWyUwfXXx/UbBjbbWGjicETUMkd4QJHqQJPf4w XQWQ== X-Gm-Message-State: ABy/qLZAK4v/AuGmKRXBZbShjDBHCrpxvYqrT5mqQNJ7L2gGdSLqcdWQ BXygzCu4/EzGziKVUZ6Te+Yji8RBCjbQN4DWnLsxwQ== X-Google-Smtp-Source: APBJJlFkmfE8/LhjRluWv9e9yKejHKZSRkL/MeiX9fNv5Z4F6gqoRKqFVIWJ6icaw0Yr8o04LGjq6w== X-Received: by 2002:a6b:dc0b:0:b0:787:ff98:c38c with SMTP id s11-20020a6bdc0b000000b00787ff98c38cmr166803ioc.10.1690564157766; Fri, 28 Jul 2023 10:09:17 -0700 (PDT) Received: from localhost.localdomain (75-166-135-140.hlrn.qwest.net. [75.166.135.140]) by smtp.gmail.com with ESMTPSA id k17-20020a5e8911000000b0077e3566a801sm1279269ioj.29.2023.07.28.10.09.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Jul 2023 10:09:17 -0700 (PDT) From: Tom Tromey Subject: [PATCH 0/3] Implement DAP "source" request Date: Fri, 28 Jul 2023 11:09:14 -0600 Message-Id: <20230728-dap-source-refs-v1-0-1bcc5cdffd44@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIADr2w2QC/x3MQQrCQAyF4auUrA2MU7COVxEXaSbaLJyWxIpQe nejy+/B+zdwMRWHS7eByVtd5xY4HjrgidpDUGsYcsp9GvIZKy3o82osaHJ3lDRwKaXnU60QryV W/fyL11t4JBccjRpPv86T/CUG+/4FY/bs6HoAAAA= To: gdb-patches@sourceware.org X-Mailer: b4 0.12.3 X-Spam-Status: No, score=-5.5 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 series refactors some source / sourceReference handling in the DAP implementation and then implements the "source" request. --- Tom Tromey (3): Introduce sourceReference handling in DAP Handle Source in DAP breakpointLocations Implement DAP "source" request gdb/python/lib/gdb/dap/breakpoint.py | 10 ++--- gdb/python/lib/gdb/dap/bt.py | 9 +--- gdb/python/lib/gdb/dap/locations.py | 12 ++---- gdb/python/lib/gdb/dap/sources.py | 82 +++++++++++++++++++++++++++++++++--- gdb/testsuite/gdb.dap/basic-dap.exp | 3 -- gdb/testsuite/gdb.dap/sources.c | 22 ++++++++++ gdb/testsuite/gdb.dap/sources.exp | 52 +++++++++++++++++++++++ 7 files changed, 158 insertions(+), 32 deletions(-) --- base-commit: 249d4715e41061b6bd2d26df20ae274e6478f972 change-id: 20230728-dap-source-refs-e07c9993c6dd Best regards, -- Tom Tromey