diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-03-16 18:26:29 +0100 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2020-03-17 10:24:08 +0100 |
commit | 9e38d619101a7637c9aba3f722690bef127fa6a6 (patch) | |
tree | cefce1125adccf02fb92938ff53dfccc112b9401 | |
parent | a2ecbe9fb7355698aad97841f9717cdfd7096d95 (diff) | |
download | gdb-9e38d619101a7637c9aba3f722690bef127fa6a6.zip gdb-9e38d619101a7637c9aba3f722690bef127fa6a6.tar.gz gdb-9e38d619101a7637c9aba3f722690bef127fa6a6.tar.bz2 |
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".
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/amd64-bsd-nat.c | 1 |
2 files changed, 5 insertions, 0 deletions
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 <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 <sys/sysctl.h>. * 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 |