From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id B4E9C3851C0F for ; Tue, 19 May 2020 21:27:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B4E9C3851C0F Received: by sf.home (Postfix, from userid 1000) id 6EE025A22061; Tue, 19 May 2020 22:27:22 +0100 (BST) From: Sergei Trofimovich To: gdb-patches@sourceware.org Cc: Sergei Trofimovich Subject: [PATCH] gdb: fix IA64 build failure of linux-nat Date: Tue, 19 May 2020 22:27:10 +0100 Message-Id: <20200519212710.1417100-1-slyfox@gentoo.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2020 21:27:28 -0000 From: Sergei Trofimovich 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'. Signed-off-by: Sergei Trofimovich --- gdb/ChangeLog | 5 +++++ gdb/ia64-linux-nat.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ac0beef5ad..0d921da325 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-05-19 Sergei Trofimovich + + * gdb/ia64-linux-nat.c: include "gdbarch.h" to declare used + 'gdbarch_num_regs'. + 2020-05-19 Simon Marchi * dwarf2/read.c (quirk_rust_enum): Allocate enough fields. diff --git a/gdb/ia64-linux-nat.c b/gdb/ia64-linux-nat.c index 8f36ea78e7..b532e7a51c 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" -- 2.26.2