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

Schimpe, Christina
2026-04-09T09:50:19Z

> -----Original Message-----
> From: Schimpe, Christina
> Sent: Montag, 2. März 2026 12:53
> To: Tom Tromey <tom@tromey.com>
> Cc: gdb-patches@sourceware.org; thiago.bauermann@linaro.org
> Subject: RE: [PATCH v2 1/9] gdb: Generalize handling of the shadow stack
> pointer.
>
> > -----Original Message-----
> > From: Tom Tromey <tom@tromey.com>
> > Sent: Freitag, 27. Februar 2026 19:26
> > To: Schimpe, Christina <christina.schimpe@intel.com>
> > Cc: Tom Tromey <tom@tromey.com>; gdb-patches@sourceware.org;
> > thiago.bauermann@linaro.org
> > Subject: Re: [PATCH v2 1/9] gdb: Generalize handling of the shadow
> > stack pointer.
> >
> > >>>>> Schimpe, Christina <christina.schimpe@intel.com> writes:
> >
> > >> Like I mentioned in another note, be sure to run check-gdbarch.py.
> >
> > > I assume you mean gdb/gdbarch.py.
> >
> > No, there's a check-gdbarch.py script that does some extra (but slow)
> > checking of gdbarch changes. You may need to 'pip install' a couple
> > things to run it. If that's a problem, it's not a huge deal, I can always run it
> later.
> >
> > Tom
>
> Ah, I missed that. Will check it out.
>
> Thanks,
> Christina

Hi Tom,

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?

Thanks,
Christina
Intel Deutschland GmbH
Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.de
Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell
Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928