]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb: include gdbarch.h in hppa-linux-nat.c
authorSimon Marchi <simon.marchi@polymtl.ca>
Sat, 28 Sep 2019 18:48:22 +0000 (14:48 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Sat, 28 Sep 2019 18:48:22 +0000 (14:48 -0400)
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
gdb/hppa-linux-nat.c

index f323cf6b14d692b3465084efb2d8497e1a0ea4f0..99e4373fc22840f522116de84dae341e2f3dcc12 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-28  Simon Marchi  <simon.marchi@polymtl.ca>
+
+       PR gdb/25045
+       * hppa-linux-nat.c: Include gdbarch.h.
+
 2019-09-26  Christian Biesinger  <cbiesinger@google.com>
 
        * blockframe.c (find_pc_partial_function): Change return type to bool.
index aea21d1c84badcf9eff98753d6615948a4e29ab6..09fa4c38c55cf6357805a62719f69a39b66d0525 100644 (file)
@@ -24,6 +24,7 @@
 #include "target.h"
 #include "linux-nat.h"
 #include "inf-ptrace.h"
+#include "gdbarch.h"
 
 #include <sys/procfs.h>
 #include "nat/gdb_ptrace.h"