From ad75efa628656716982f2674008952bfd2c268af Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Sat, 28 Sep 2019 14:48:22 -0400 Subject: [PATCH] gdb: include gdbarch.h in hppa-linux-nat.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 f323cf6b14d..99e4373fc22 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 aea21d1c84b..09fa4c38c55 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" -- 2.30.2