RE: [PATCH v2 6/9] gdb: Add command option 'bt -shadow' to print the shadow stack backtrace.

Schimpe, Christina
2026-04-14T15:06:19Z

> -----Original Message-----
> From: Eli Zaretskii <eliz@gnu.org>
> Sent: Dienstag, 14. April 2026 16:13
> To: Schimpe, Christina <christina.schimpe@intel.com>
> Cc: gdb-patches@sourceware.org; thiago.bauermann@linaro.org
> Subject: Re: [PATCH v2 6/9] gdb: Add command option 'bt -shadow' to print
> the shadow stack backtrace.
>
> > From: "Schimpe, Christina" <christina.schimpe@intel.com>
> > CC: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>,
> > "thiago.bauermann@linaro.org" <thiago.bauermann@linaro.org>
> > Date: Tue, 14 Apr 2026 13:28:52 +0000
> >
> > > > This avoids triggering a warning. However, since none of the other
> > > > AArch64 or
> > > > x86 subsubsections currently have nodes, I believe we should add
> > > > nodes for them and update the menu accordingly:
> > >
> > > There's no need to add a node for each subsubsection.
> >
> > Won't this help us to navigate using 'previous' and 'next' etc. when using
> "info gdb" ?
>
> It might, but with subsubsections that are not too large, is that a real need?
> It's up to you, of course, so if you want to add nodes, go ahead. Just make
> sure to create/update the menus accordingly.

If we do that, a separate patch is probably better. But given that we can use
@anchor instead, I agree we don't necessarily have to add the menu.
I missed that we have this alternative.

> > > In fact, I'm not sure I
> > > understand why you wanted to add the two @node's that give you
> > > trouble, can you explain?
> >
> > You mean the nodes for CET and GCS?
> >
> > If I don't add them, I'll see
> > ~~~
> > gdb.texinfo:8801: @pxref reference to nonexistent node `CET'
> > gdb.texinfo:8822: @pxref reference to nonexistent node `CET'
>
> You can use @anchor to have a place to refer to in a cross-reference.

I will use that one now.

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