From 9e38d619101a7637c9aba3f722690bef127fa6a6 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Mon, 16 Mar 2020 18:26:29 +0100 Subject: 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(+) (limited to 'gdb') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index cb2e91b..5cc6f6d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2020-03-17 Kamil Rytarowski + * amd64-bsd-nat.c: Include amd64-bsd-nat.h". + +2020-03-17 Kamil Rytarowski + * nbsd-nat.c: Include , and . * nbsd-nat.c (nbsd_nat_target::pid_to_exec_file): Rewrite. diff --git a/gdb/amd64-bsd-nat.c b/gdb/amd64-bsd-nat.c index d2be4bb..9a3c9c2 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 -- cgit v1.1