Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: "Kévin Le Gouguec" <legouguec@adacore.com>
To: gdb-patches@sourceware.org
Cc: "Kévin Le Gouguec" <legouguec@adacore.com>,
	"Simon Marchi" <simark@simark.ca>
Subject: [PATCH v3 0/2] Fix Ada tasking for baremetal targets using Ravenscar threads
Date: Fri,  6 Nov 2026 17:51:55 +0100	[thread overview]
Message-ID: <cover.1793983731.git.legouguec@adacore.com> (raw)
In-Reply-To: <20230127165337.1832937-1-legouguec@adacore.com>

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


  parent reply	other threads:[~2026-11-06 16:53 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-12 17:10 [PATCH] " Kévin Le Gouguec via Gdb-patches
2023-01-12 18:19 ` Simon Marchi via Gdb-patches
2023-01-13 12:32   ` Kévin Le Gouguec via Gdb-patches
2023-01-13 16:29     ` Simon Marchi via Gdb-patches
2023-01-13 17:16       ` Kévin Le Gouguec via Gdb-patches
2023-01-27 16:53         ` [PATCH v2 0/3] " Kévin Le Gouguec via Gdb-patches
2023-01-27 16:53           ` [PATCH v2 1/3] gdb: Introduce ada-tasks.h for functions defined in ada-tasks.c Kévin Le Gouguec via Gdb-patches
2023-01-27 16:53           ` [PATCH v2 2/3] gdb/ada-tasks: Make the ada_tasks_pspace_data getter public Kévin Le Gouguec via Gdb-patches
2023-01-27 16:53           ` [PATCH v2 3/3] gdb: Fix Ada tasking for baremetal targets using Ravenscar threads Kévin Le Gouguec via Gdb-patches
2026-11-06 16:51           ` Kévin Le Gouguec [this message]
2026-11-06 16:51             ` [PATCH v3 1/2] gdb: Introduce ada-tasks.h for functions defined in ada-tasks.c Kévin Le Gouguec
2026-11-06 19:43               ` Simon Marchi
2026-11-09  9:14                 ` Kévin Le Gouguec
2026-11-09 15:02                   ` Simon Marchi
2026-11-09 17:07                     ` Kévin Le Gouguec
2026-11-06 16:51             ` [PATCH v3 2/2] gdb: Fix CPU ID offset for Ravenscar Threads Kévin Le Gouguec
2026-11-13 16:40             ` [PATCH v4 0/2] Fix Ada tasking for baremetal targets using Ravenscar threads Kévin Le Gouguec
2026-11-13 16:40               ` [PATCH v4 1/2] gdb: Introduce ada-tasks.h for functions defined in ada-tasks.c Kévin Le Gouguec
2026-11-13 16:40               ` [PATCH v4 2/2] gdb: Fix CPU ID offset for Ravenscar Threads Kévin Le Gouguec

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1793983731.git.legouguec@adacore.com \
    --to=legouguec@adacore.com \
    --cc=gdb-patches@sourceware.org \
    --cc=simark@simark.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox