From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id ck/UEkAj/mlbQCQAWB0awg (envelope-from ) for ; Fri, 08 May 2026 13:54:08 -0400 Received: by simark.ca (Postfix, from userid 112) id 3822E1E067; Fri, 08 May 2026 13:54:08 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 72A151E067 for ; Fri, 08 May 2026 13:54:07 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 75C404BA2E32 for ; Fri, 8 May 2026 17:54:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 75C404BA2E32 Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) by sourceware.org (Postfix) with ESMTPS id 58F704BA2E23 for ; Fri, 8 May 2026 17:53:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 58F704BA2E23 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 58F704BA2E23 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778262822; cv=none; b=lmMYZsxWgRFibGxubc2rADhd8+snyljsJsHzVJuhrNUyOGw39DmPz9kJwHz+4JFebEVn6cFcWqwTLm4e50SeVqyU4Z/3RAR9wh8qxRAPXigQaqDPOX+OC5nnFlaidA1EDpdKDdeGwMtN+TCg4ISLRh5zWub6tNBJXDp1DCToS1U= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778262822; c=relaxed/simple; bh=SQxWJ51yISZi+YC7fY0yyLJi7GGyjQ421oejxny6khM=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=B15Y+Mo0YfPsSZEDrWfh/XaZL40w8Mh0z/LnmIwAEG3u21xTg/B6NJds/UZz24mqM3lbNxRle/tDK4/uq8OTsY/H9geAynpA4H5FhYvrFPhEFxFEGLKSXBRsuo8roPBTtPzVC4tJdNwE4RhMCcbTo38J8iqXIgo51sSuFo59wT4= ARC-Authentication-Results: i=1; sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58F704BA2E23 Received: by mail-wm1-f54.google.com with SMTP id 5b1f17b1804b1-4891c00e7aeso19995375e9.2 for ; Fri, 08 May 2026 10:53:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778262821; x=1778867621; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=yuQuZDcrOqzeXHbSwutEgMUUaDMsRUu2DpsRlBbvdzw=; b=IS0trFnQaF6vIfXd63Ygp7QyGF5navKE4nVEWNUPxOxF8snFzzCsg9jtXLK/TqsVa9 3Ehvc6IsTK5mt3dE4OL81BK1qdbXBxoba/06Zp7ZlhwGV0yqoXJjiJ7xHPq1CrIa4TbY jwrnPcxMAlgRDFdVoxP7oA3z+8/WXy3VGHtMnFYNkHoSPvOU+V93yvZfKhIsKxnhHVRH 6Nrh4a60vdQ37fw0CxUXnu9ETLr2edg1hpCRT4SQlAQgevqh3qh8zsCFDD0bW7PC9uFP 7sC8pLksuIPfb0CB6FaZuuPSgcIFaaO07+yAH0iOI/PuZV2/z7COVWRBvPZRBSoFP9Gp 0+Pw== X-Gm-Message-State: AOJu0YxQwZEa76Odcy5r0raHksI5nGehhx3bN13A3QJbh64+fM1s042X cGNYIbSwJiywyQcRgoRD7NpE83nOtAy4F61Bv1kFrJ2+Q52XQWKqCH+fXnXxkg== X-Gm-Gg: AeBDieuqdu8vIXRNQ4y6dX/rHD5aTiUk24DLny51JW/yZdOPAXCqvNTABg8cp6ks3vM xCpg3xrVWa2y42si8WZlIZTkDZ8LRcdPuphuWzOU++6WFmHbd8QIhD93YCzSZdtDdK/QysXceKP FfS2BQSQI6ql+49v+oux2PpcmR9w2KYK+YOTkYNkZpltnv0RIQXxh1hit4SCdQ4SPxbT/loTUJY gBSaS0beamQMhKm7JiJoZUgscCQ4gsT4cH/0+3VAolvW7xxi9XHSFLIo7GdqNPMjNXFVHhPxjy+ UQY9CI85pNACx74Z+37dXzo0tex07VbZAyTGRkYvc0Dxd3YdQDH3aC3+kDsmAYTyiB2xAAIWaUh FPrxo0zRxFLsWVgxliTPGsRwdcSjxSGMa7PpJlnZg5qOYu966rAQTvZbKyO4B15kktKLEdZq0IF jbB6+T2y7uo028cp0UuPqYpPoPnGH7h1tZ X-Received: by 2002:a05:600c:8b8b:b0:489:1aed:1658 with SMTP id 5b1f17b1804b1-48e51f3fd03mr215319285e9.23.1778262820626; Fri, 08 May 2026 10:53:40 -0700 (PDT) Received: from localhost ([2001:8a0:facb:a800:8568:24f9:2e91:5bb5]) by smtp.gmail.com with UTF8SMTPSA id 5b1f17b1804b1-48e6dd3297csm10250575e9.4.2026.05.08.10.53.40 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 08 May 2026 10:53:40 -0700 (PDT) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/4] AMD GPU debugging support on Windows Date: Fri, 8 May 2026 18:53:34 +0100 Message-ID: <20260508175338.536044-1-pedro@palves.net> X-Mailer: git-send-email 2.53.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org To support AMD GPU debugging on Windows, we need the following pieces: [x] Windows non-stop support Merged last week. This is needed because the amd-dbgapi-target target requires working in coordination with a CPU/process_stratum target backend that always works in non-stop mode. [ ] Multiple solib providers at once This is needed because the way we hack into solib-svr4 for the GPU code loader does not work on Windows, as Windows uses solib-target. This is Simon's series at https://inbox.sourceware.org/gdb-patches/5b5fc6b8-a0b4-4346-88e1-4974a9eed31c@polymtl.ca/T/ [ ] Windows tweaks for amd-dbgapi-target This is this series. With this, you'll be able to build a GDB that links against a Windows build of the AMD Debug API library, and activate the amd-dbgapi-target target. Technically, we also need support for gfx1200/gfx1201 in bfd as those are the GPUs currently supported by the Windows GPU driver for debugging, but I consider that a separate detail. Bfd support for those architectures is pending at https://inbox.sourceware.org/binutils/20251031175411.1303161-1-luis.machado@amd.com/ I'm proposing adding a NEWS entry already, as I expect Simon's series will land soon enough, and really the upstream support for AMD GPU debugging is very limited, just like the Linux support is, so it won't make much of a difference in practice either way. This will get better when DWARF 6 is further ahead and we're able to upstream the location-on-the-stack changes, address spaces support, and more, that come with it, which will unlock upstreaming a lot more downstream ROCgdb code and enable full AMD GPU debugging support directly upstream (on both Linux and Windows). Lancelot SIX (3): gdb/amd-dbgapi-target: Move Linux code to amd-dbagapi-posix-hdep.c gdb/amd-dbgapi-target: Add amd-dbgapi-mingw-hdep.c for Windows gdb/amd-dbgapi-target: Update xfer_partial to always use dbgapi Pedro Alves (1): gdb/NEWS: Add note about AMD GPU debugging on Windows gdb/Makefile.in | 3 + gdb/NEWS | 5 ++ gdb/amd-dbgapi-hdep.h | 38 ++++++++ gdb/amd-dbgapi-mingw-hdep.c | 172 ++++++++++++++++++++++++++++++++++++ gdb/amd-dbgapi-posix-hdep.c | 55 ++++++++++++ gdb/amd-dbgapi-target.c | 76 +++++++++++----- gdb/configure | 13 +++ gdb/configure.ac | 13 +++ 8 files changed, 351 insertions(+), 24 deletions(-) create mode 100644 gdb/amd-dbgapi-hdep.h create mode 100644 gdb/amd-dbgapi-mingw-hdep.c create mode 100644 gdb/amd-dbgapi-posix-hdep.c base-commit: 7a15a5f571da8772765bfb17d1049a097205035e -- 2.53.0