Re: [PATCH v2 1/9] gdb: Generalize handling of the shadow stack pointer.

Tom Tromey
2026-04-14T17:34:45Z

>>>>> Schimpe, Christina <christina.schimpe@intel.com> writes:

> Sorry for getting back delayed response. I am seeing the following
> when running check-gdbarch.py:

> ~~~
> $ ./check-gdbarch.py
> never set: shadow_stack_element_size_aligned
> ~~~

> Given that I assign a pre-default I don't have to configure it for amd64 specifically.
> But starting with this patch, this message will always appear when running the script.

> Should we change the script for this case?

It depends.

This means that no architecture sets this gdbarch parameter.
So:

1. Maybe it's not needed at all and should be removed, or
2. Maybe it's used in some later patch and the warning should be
ignored, or
3. Maybe it might be used in the future and we don't want to
hard-code the value and so it should be marked 'unused'
in gdbarch_components.py

Tom