[PATCH] gdb: fix IA64 build failure of linux-nat
Kevin Buettner
kevinb@redhat.com
Tue May 19 22:00:41 GMT 2020
On Tue, 19 May 2020 22:27:10 +0100
Sergei Trofimovich via Gdb-patches <gdb-patches@sourceware.org> wrote:
> From: Sergei Trofimovich <siarheit@google.com>
>
> On IA64 built failed as:
>
> ```
> ia64-linux-nat.c:352:29: error: 'gdbarch_num_regs' was not declared in this scope
> 352 | if (regno < 0 || regno >= gdbarch_num_regs (gdbarch))
> | ^~~~~~~~~~~~~~~~
> ```
>
> The fix includes "gdbarch.h" header where symbol is declared.
>
> * gdb/ia64-linux-nat.c: include "gdbarch.h" to declare used
> 'gdbarch_num_regs'.
Okay, but please capitalize "include" in the ChangeLog entry prior
to pushing this change.
Kevin
More information about the Gdb-patches
mailing list