From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id sUFqMAcG7mrb/CgAWB0awg (envelope-from ) for ; Fri, 06 Nov 2026 11:53:27 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=J4I0nb9N; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id AFA68378002; Fri, 06 Nov 2026 11:53:27 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=unavailable 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 D3F1C1E023 for ; Fri, 06 Nov 2026 11:53:26 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 837CB4BA2E26 for ; Fri, 6 Nov 2026 16:53:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 837CB4BA2E26 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=J4I0nb9N Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 833AF4BA2E06 for ; Fri, 6 Nov 2026 16:52:51 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 833AF4BA2E06 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 833AF4BA2E06 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::330 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793983971; cv=none; b=ZFsXjByBKBmfSHduWm3O32dUUZWx5EwZyssThJC5H+XaLCms5gmxYwlwiF9mT6YeLFjJ6cOrnzmWqcY5/Y/LKCCouW+rXQgV2X8KXHlygLgQ3AxjEX8OPW9u/vM4f7A+BM1Vcn6vtoo/W8vqLl7QXHO8wapdLrIVtRwkPv1yujg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1793983971; c=relaxed/simple; bh=BRb0qoEGgPCdDJmbugN6WhyCVnZLfst62g3Acc8Z45E=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=cUg+VE6HcltafB09335V/gO5mim/FtCCZt18SMdmAPft/FWIMjAJGNiQaaYNF0jn8GY+KGdEqbjbnQ2ahR8Z6193bXphw4l02I92P/HfYEwCYrC+DZR6zwI6BEVo1Dmov/QO5AtRK23cfAO8eleO/rOuSccB10FN1SzzeFJYD+Q= ARC-Authentication-Results: i=1; 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=J4I0nb9N DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 833AF4BA2E06 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-4a140e7405dso8600395e9.3 for ; Fri, 06 Nov 2026 08:52:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1793983970; x=1794588770; darn=sourceware.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=rsJrIXQDYQ3s/czpVS1WNEd9pbIUSxp0gp6eH0LrWOw=; b=J4I0nb9NZJx7TvNiyrG8UhR5lSSSIddtn5LtJIU/J/nrcwSSe/7EBd8yF189QlErio jwcZY4dU0t+x3CzcpkFDS+wG6Gz5ioxy3UVM0v8BoAyRN4yNTTeAGmIqn5Sihk88lH0E 0xPRg5rNF8mTrFKHSUQ9Nsa2CY4EJgqKPfurOhQZefk82TEbEOnZwJp6DusEvxCVlMqH QGQWNl8/aDEXBi+kIatOP7DWasMVSTPvZaHtlxumOw3jAmxqJtFcuvXwpcGLpRcgwZpC 7aGUdls0pfDHVdPgVLfnjYrtLugwDQxi5o2dmGw6md7ZHaQA2ftNjf0fHa4eHgJ3SFyI JYrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1793983970; x=1794588770; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=rsJrIXQDYQ3s/czpVS1WNEd9pbIUSxp0gp6eH0LrWOw=; b=cA3wEdnQk8dHCKabdVxlavbmTnp/dE3RK4/wPR2YODzRpH1Lu+xe0xVu3NMf1v9KmI 5oNXcRO2TpdqcDUMOg3C5xWqHv9JHpcURVdLlZkOOdpHt1XjjRXrA1X9wYoCEITsG+mA Da4jMjGe40OWnQDC4ZJAyLHM0omAZXkbptGrwcXE0bbFhlI9mizNZsnjWPQum2pD7ewY H4MXvNDJvkeq+ufMLMQS7E0r6U8LV5YVb1D4gysHsJkDacE7X+YNER+uX/1XpSjv5f/h tMADKCdkrijQ9QYQXKv+p4qSgDodeFjcEjer4KQdEPBFioYzxpdynh6crkCDICVY5ZXT jlqQ== X-Gm-Message-State: APuU4Z+XloK4tJsMXiSR29Qwpx0EkVybeLNoVtVynNZlha2gXqplCN0B eDIjbe9llF/7hfzg5TX23lCLIX27nLWx1F+ogrUJ3CYjhqj4k+vINARXJr0jgdX/UNOgaVqZttX giaINdA== X-Gm-Gg: AYBFou3DNS5o2N2pdbaQYQWuBuB1Hqf1CwVaaF5fd2hf56m5PhLDo8lScakmiwjeuK0 o/eZup6YuAIqBYr3wFo3/qUslumPk/wiisVJPQeUN0UFvtd7ua0tMpPv+iqc0VJ6tPmY7h3zC6Y F6CuFPtnligudTOvv/c8eGCnsbL8fGuoDmiXkuCqNu2JmTedrjgyuuJA/zRTmLKx6mqNtJdkARc 42hiAsOyltfWZtSo0hCp+TzIHvvnEWBtS0xjhT7HKPoA3sngHA5X0g4RcuCS9s/97TkTGTX2fiW +D0vqSV4ANbGrfLdeiMY5JNVahlMO8Ke67HOG0kQNuAep00fH1783OhlGCVUAsNztU+fthR7oxh qovy4dUlas2Y/afa+4YUc/xLPjjUaV62j1YXgn9txEqKVbP8aIuXni0pivOdeTqZcWIs27f5yoT H+LCyp9oeZHolOzfssOW3npsCKHrMN4e/wg9GRjJ2XBCIeA0bGgAlo3ZF1ovgmJo4ertj2Jojw7 fC6SziRDK7NhvUD22FKH2Cpn8jN7O0iVUcBlRYQElRibB61o9/51TsgxbdHRbvLJRm74b0Hc+sL bOslNRbIF0uTrgrio8pFIlgQb3audOKDk13riQ== X-Received: by 2002:a05:600c:608a:b0:4a2:1364:252a with SMTP id 5b1f17b1804b1-4b6db0d07dbmr52681515e9.3.1793983970506; Fri, 06 Nov 2026 08:52:50 -0800 (PST) Received: from localhost.localdomain ([2.57.72.67]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-492d7cc5e23sm4895956f8f.45.2026.11.06.08.52.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2026 08:52:50 -0800 (PST) From: =?UTF-8?q?K=C3=A9vin=20Le=20Gouguec?= To: gdb-patches@sourceware.org Cc: =?UTF-8?q?K=C3=A9vin=20Le=20Gouguec?= , Simon Marchi Subject: [PATCH v3 0/2] Fix Ada tasking for baremetal targets using Ravenscar threads Date: Fri, 6 Nov 2026 17:51:55 +0100 Message-ID: X-Mailer: git-send-email 2.43.0 In-Reply-To: <20230127165337.1832937-1-legouguec@adacore.com> References: <20230127165337.1832937-1-legouguec@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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 Howdy, New revision of the fixup that I submitted a couple years back¹, prompted by observing more regressions with Ada tasking on PolarFire after recently enabling SMP support in the Ada runtime - allowing the tasking kernel to spread tasks on more than one CPU. Changes since v2: * adjustments to patch 1/3 to account for rebase churn; * dropped patch 2/3: instead of exposing a function that returns the kitchen sink, let patch 3/3 add a function with a narrower purpose; * overhauled patch 3/3: it took me a good long while to get re-acquainted with the GDB code and the GNAT tasking runtime, so I endeavored to make my (or anyone's) next visit more "guided": * instead of shotgunning offset additions/subtractions across ravenscar-thread.c, introduced a class with explicitly-named constructors & accessors, * moved the bulk of the v[12] storytelling^Wcommit message into code comments. * also, re. Simon's concern about global state: realized that instead of assuming current_program_space, it would make sense to use inf->space in ravenscar_inferior_created. Let me know how this looks. ¹ v1: <20230112171043.1159787-1-legouguec@adacore.com> v2: <20230127165337.1832937-1-legouguec@adacore.com> Kévin Le Gouguec (2): gdb: Introduce ada-tasks.h for functions defined in ada-tasks.c gdb: Fix CPU ID offset for Ravenscar Threads gdb/Makefile.in | 1 + gdb/ada-lang.h | 19 ----- gdb/ada-tasks.c | 39 +++++----- gdb/ada-tasks.h | 77 ++++++++++++++++++ gdb/break-cond-parse.c | 2 +- gdb/breakpoint.c | 1 + gdb/guile/scm-breakpoint.c | 2 +- gdb/mi/mi-main.c | 2 +- gdb/python/py-breakpoint.c | 2 +- gdb/ravenscar-thread.c | 155 +++++++++++++++++++++++++++---------- 10 files changed, 217 insertions(+), 83 deletions(-) create mode 100644 gdb/ada-tasks.h -- 2.43.0