Re: [PATCH] scripts/gdb: Fix interrupts.py after maple tree conversion

From: Florian Fainelli
Date: Fri Jun 20 2025 - 14:26:33 EST


On 6/20/25 11:14, Florian Fainelli wrote:
In commit 721255b9826b ("genirq: Use a maple tree for interrupt
descriptor management"), the irq_desc_tree was replaced with a
sparse_irqs tree using a maple tree structure. In the interest of
providing both a minimal bugfix as well as something that is unlikely to
break in the future, invoke the irq_to_desc() function directly from
within GDB in order to obtain the interrupt number. This requires us to
handle the gdb.error exception to continue walking the tree.
> > Fixes: 721255b9826b ("genirq: Use a maple tree for interrupt descriptor management")
Signed-off-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>

Humm, looks like we might not have a choice than to be able to parse a maple tree within GDB. While this approach of calling irq_to_desc() worked correctly on x86 under QEMU, this failed on arm64.

pw-bot: cr
--
Florian