From 9e38d619101a7637c9aba3f722690bef127fa6a6 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Mon, 16 Mar 2020 18:26:29 +0100 Subject: [PATCH] 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". --- gdb/ChangeLog | 4 ++++ gdb/amd64-bsd-nat.c | 1 + 2 files changed, 5 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb2e91be8d..5cc6f6d65a 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 d2be4bb239..9a3c9c22c0 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 -- 2.34.1