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

Eli Zaretskii
2026-04-14T11:53:56Z

> 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".

> 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. In fact, I'm
not sure I understand why you wanted to add the two @node's that give
you trouble, can you explain?