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".
This commit is contained in:
Kamil Rytarowski 2020-03-16 18:26:29 +01:00
parent a2ecbe9fb7
commit 9e38d61910
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2020-03-17 Kamil Rytarowski <n54@gmx.com>
* amd64-bsd-nat.c: Include amd64-bsd-nat.h".
2020-03-17 Kamil Rytarowski <n54@gmx.com>
* nbsd-nat.c: Include <sys/types.h>, <sys/ptrace.h> and

View File

@ -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