From patchwork Sun Nov 24 20:07:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 36166 Received: (qmail 104630 invoked by alias); 24 Nov 2019 20:07:21 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 104622 invoked by uid 89); 24 Nov 2019 20:07:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HDKIM-Filter:v2.10.3, H*r:10026 X-HELO: mail.efficios.com Received: from mail.efficios.com (HELO mail.efficios.com) (167.114.142.138) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sun, 24 Nov 2019 20:07:20 +0000 Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 1BF8A345F8A for ; Sun, 24 Nov 2019 15:07:18 -0500 (EST) Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id G_kZ4-_fqoBY; Sun, 24 Nov 2019 15:07:17 -0500 (EST) Received: from localhost (ip6-localhost [IPv6:::1]) by mail.efficios.com (Postfix) with ESMTP id 9E883345F86; Sun, 24 Nov 2019 15:07:17 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 9E883345F86 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1574626037; bh=wbBYpLGZiiB6Hqt08rxvueDgof4v9J/zj9yIYbbtrzg=; h=From:To:Date:Message-Id:MIME-Version; b=mZRk6xeYOmdBD8hStxq9YzFHMSGIwdGdNpnTFc96RiyEFTEuFXRGEBx/Da7XI16ay /JfQJ27uPT0nmZpEw8O6NEs3XY5wwbYSbPMjGBGCMDVRlvqHICnlekVqRYSYdTndMQ Djdhd8jlWO0IWffaGV1g0sLQQYNZzMBiAVKlGs3vLN1iZ2bSYXmdTZ5hdZJDxv+kZj j8Ra2JvVzlqqDGqdApj9dGQDSJ0y+JUThX6eDkNsxIgyGtdU0nOBPFJeXKtiHNO/qs w1n/WiIpRbR6tXn+4sxgLm/OXWQhPD7Wser1sJ5WCGWWS2VVhM+rcUJcvzc3xEhVVf 5tpeCwZSl6FiA== Received: from mail.efficios.com ([IPv6:::1]) by localhost (mail02.efficios.com [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id wYdQvF6MQMgT; Sun, 24 Nov 2019 15:07:17 -0500 (EST) Received: from smarchi-efficios.lan (unknown [192.222.164.54]) by mail.efficios.com (Postfix) with ESMTPSA id 7C1F6345F7A; Sun, 24 Nov 2019 15:07:17 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [pushed] Include gdbarch.h in m68k-linux-nat.c Date: Sun, 24 Nov 2019 15:07:10 -0500 Message-Id: <20191124200710.30399-1-simon.marchi@efficios.com> MIME-Version: 1.0 Fix this compilation error, and a bunch of similar ones: CXX m68k-linux-nat.o /home/smarchi/src/binutils-gdb/gdb/m68k-linux-nat.c: In function ‘void fetch_register(regcache*, int)’: /home/smarchi/src/binutils-gdb/gdb/m68k-linux-nat.c:133:9: error: ‘gdbarch_register_name’ was not declared in this scope gdbarch_register_name (gdbarch, regno), ^~~~~~~~~~~~~~~~~~~~~ gdb/ChangeLog: * m68k-linux-nat.c: Include gdbarch.h. Change-Id: I7cd47bc5d094241b2596e29c244eb55ed11f7a02 --- gdb/ChangeLog | 4 ++++ gdb/m68k-linux-nat.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 63a1508c49ba..3b656f48864e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2019-11-24 Simon Marchi + + * m68k-linux-nat.c: Include gdbarch.h. + 2019-11-24 Tom Tromey * symfile.c (read_symbols): Update. diff --git a/gdb/m68k-linux-nat.c b/gdb/m68k-linux-nat.c index 91e68bae29c9..959dbf44760b 100644 --- a/gdb/m68k-linux-nat.c +++ b/gdb/m68k-linux-nat.c @@ -25,6 +25,7 @@ #include "regcache.h" #include "target.h" #include "linux-nat.h" +#include "gdbarch.h" #include "m68k-tdep.h"