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

Schimpe, Christina
2026-04-14T13:29:35Z

> -----Original Message-----
> From: Eli Zaretskii <eliz@gnu.org>
> Sent: Dienstag, 14. April 2026 13:53
> 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 08:43:52 +0000
> >
> > I just noticed the following warnings on fedora with texinfo 7.2:
> >
> > gdb.texinfo:26867: warning: node next pointer for `AArch64' is `x86'
> > but next is `GCS' in menu
> > gdb.texinfo:27232: warning: node `x86' is next for `GCS' in menu but
> > not in sectioning
> > gdb.texinfo:27232: warning: node `AArch64' is prev for `GCS' in menu
> > but not in sectioning
> > gdb.texinfo:27232: warning: node up pointer for `GCS' is `AArch64' but
> > up is `Architectures' in menu
> > gdb.texinfo:27280: warning: node next pointer for `x86' is `Alpha' but
> > next is `CET' in menu
> > gdb.texinfo:27280: warning: node prev pointer for `x86' is `AArch64'
> > but prev is `GCS' in menu
> > gdb.texinfo:27321: warning: node `Alpha' is next for `CET' in menu but
> > not in sectioning
> > gdb.texinfo:27321: warning: node `x86' is prev for `CET' in menu but
> > not in sectioning
> > gdb.texinfo:27321: warning: node up pointer for `CET' is `x86' but up
> > is `Architectures' in menu
> > gdb.texinfo:27362: warning: node prev pointer for `Alpha' is `x86' but
> > prev is `CET' in menu
> >
> > for the menu changes:
> > ~~~
> > @menu
> > * AArch64::
> > +* GCS::
> > * x86::
> > +* CET::
> > * Alpha::
> > * MIPS::
> > * HPPA::
> > ~~~
>
> Yes, because you are adding these items to the wrong menu. These nodes are
> NOT subsections of "Architectures", they are subsubsections of its
> subsections. So the @menu with these nodes should be in the parent
> subsections, not in "Architectures".

It appears there was a misunderstanding on my part—thank you for the clarification.
I thought you meant that menu with "parent menu" in your feedback before,
since there is currently no menu in the parent subsections.

> > If I change the CET and GCS subsubsections to subsections the warning
> disappears...
> > so I think I must add a new @menu for the subsubsections.
> >
> > +@menu
> > +* CET::
> > +@end menu
>
> Yes.
>
> > 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" ?

> 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'
~~~

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