From: Sergei Trofimovich Date: Tue, 19 May 2020 21:19:45 +0000 (+0100) Subject: gdb: fix IA64 build failure of linux-nat X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f9b11e6b1833a6dc06a0af03bcb6bd42d7a2f009;p=binutils-gdb.git gdb: fix IA64 build failure of linux-nat 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. * ia64-linux-nat.c: Include "gdbarch.h" to declare used 'gdbarch_num_regs'. Signed-off-by: Sergei Trofimovich --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b097b325a22..3f681e19e5a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-08-17 Sergei Trofimovich + + * ia64-linux-nat.c: Include "gdbarch.h" to declare used + 'gdbarch_num_regs'. + 2020-08-17 Tom Tromey * ada-varobj.c (ada_varobj_decode_var): Handle case where diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c index 8f36ea78e76..b532e7a51c5 100644 --- a/gdb/ia64-linux-nat.c +++ b/gdb/ia64-linux-nat.c @@ -21,6 +21,7 @@ #include "defs.h" #include "inferior.h" #include "target.h" +#include "gdbarch.h" #include "gdbcore.h" #include "regcache.h" #include "ia64-tdep.h"