From: Kamil Rytarowski Date: Mon, 16 Mar 2020 17:26:29 +0000 (+0100) Subject: Include missing header to get missing declarations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9e38d619101a7637c9aba3f722690bef127fa6a6;p=binutils-gdb.git Include missing header to get missing declarations CXX amd64-bsd-nat.o amd64-bsd-nat.c:42:1: error: no previous declaration void amd64bsd_fetch_inferior_registers(regcache*, [-Werror=missing-declarations] amd64bsd_fetch_inferior_registers (struct regcache *regcache, int regnum) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ amd64-bsd-nat.c:118:1: error: no previous declaration void amd64bsd_store_inferior_registers(regcache*, [-Werror=missing-declarations] amd64bsd_store_inferior_registers (struct regcache *regcache, int regnum) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Detected on NetBSD/amd64 9.99.49. gdb/ChangeLog: * amd64-bsd-nat.c: Include amd64-bsd-nat.h". --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb2e91be8d0..5cc6f6d65a3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-03-17 Kamil Rytarowski + + * amd64-bsd-nat.c: Include amd64-bsd-nat.h". + 2020-03-17 Kamil Rytarowski * nbsd-nat.c: Include , and diff --git a/gdb/amd64-bsd-nat.c b/gdb/amd64-bsd-nat.c index d2be4bb2399..9a3c9c22c05 100644 --- a/gdb/amd64-bsd-nat.c +++ b/gdb/amd64-bsd-nat.c @@ -33,6 +33,7 @@ #include "amd64-nat.h" #include "x86-bsd-nat.h" #include "inf-ptrace.h" +#include "amd64-bsd-nat.h" /* Fetch register REGNUM from the inferior. If REGNUM is -1, do this