From patchwork Sat Sep 28 18:48:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 34709 Received: (qmail 68600 invoked by alias); 28 Sep 2019 18:49:04 -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 68591 invoked by uid 89); 28 Sep 2019 18:49:03 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-18.5 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_SOFTFAIL autolearn=ham version=3.3.1 spammy=H*F:D*ca, marchi, Marchi, HContent-Transfer-Encoding:8bit X-HELO: barracuda.ebox.ca Received: from barracuda.ebox.ca (HELO barracuda.ebox.ca) (96.127.255.19) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 28 Sep 2019 18:49:01 +0000 Received: from smtp.ebox.ca (smtp.ebox.ca [96.127.255.82]) by barracuda.ebox.ca with ESMTP id 5pYol760H4pPO16R (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 28 Sep 2019 14:48:59 -0400 (EDT) Received: from simark.lan (unknown [192.222.164.54]) by smtp.ebox.ca (Postfix) with ESMTP id 58411441B21; Sat, 28 Sep 2019 14:48:59 -0400 (EDT) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [pushed] gdb: include gdbarch.h in hppa-linux-nat.c Date: Sat, 28 Sep 2019 14:48:59 -0400 Message-Id: <20190928184859.2904007-1-simon.marchi@polymtl.ca> MIME-Version: 1.0 X-IsSubscribed: yes hppa-linux-nat.c fails to build due to the gdbarch stuff not being declared, for example: hppa-linux-nat.c: In function ‘void fetch_register(regcache*, int)’: hppa-linux-nat.c:230:7: error: ‘gdbarch_cannot_fetch_register’ was not declared in this scope if (gdbarch_cannot_fetch_register (gdbarch, regno)) Include gdbarch.h to fix it. gdb/ChangeLog: PR gdb/25045 * hppa-linux-nat.c: Include gdbarch.h. --- gdb/ChangeLog | 5 +++++ gdb/hppa-linux-nat.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f323cf6b14d6..99e4373fc228 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2019-09-28 Simon Marchi + + PR gdb/25045 + * hppa-linux-nat.c: Include gdbarch.h. + 2019-09-26 Christian Biesinger * blockframe.c (find_pc_partial_function): Change return type to bool. diff --git a/gdb/hppa-linux-nat.c b/gdb/hppa-linux-nat.c index aea21d1c84ba..09fa4c38c55c 100644 --- a/gdb/hppa-linux-nat.c +++ b/gdb/hppa-linux-nat.c @@ -24,6 +24,7 @@ #include "target.h" #include "linux-nat.h" #include "inf-ptrace.h" +#include "gdbarch.h" #include #include "nat/gdb_ptrace.h"