From 1eb6eb795fd3479c97d8aadc4f70d6afad5f8511 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Wed, 23 Sep 2020 03:56:46 +0200 Subject: [PATCH] Include the x86-bsd-nat.h header and fix the NetBSD/i386 build In file included from ../../gdb/i386-nbsd-nat.c:26: ../../gdb/i386-bsd-nat.h:34:53: error: expected template-name before '<' token 34 | class i386_bsd_nat_target : public x86bsd_nat_target | ^ ../../gdb/i386-bsd-nat.h:34:53: error: expected '{' before '<' token ../../gdb/i386-nbsd-nat.c:74:45: error: aggregate 'i386_bsd_nat_target the_i386_nbsd_nat_target' has incomplete type and cannot be defined 74 | static i386_bsd_nat_target the_i386_nbsd_nat_target; | ^~~~~~~~~~~~~~~~~~~~~~~~ gdb/ChangeLog: * i386-bsd-nat.c: Include "x86-bsd-nat.h". --- gdb/ChangeLog | 4 ++++ gdb/i386-bsd-nat.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e297075f00..71aab702de 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2020-10-01 Kamil Rytarowski + + * i386-bsd-nat.c: Include "x86-bsd-nat.h". + 2020-09-30 Tom de Vries PR symtab/26683 diff --git a/gdb/i386-bsd-nat.h b/gdb/i386-bsd-nat.h index f1c4fc6dfa..be53ea0562 100644 --- a/gdb/i386-bsd-nat.h +++ b/gdb/i386-bsd-nat.h @@ -20,6 +20,8 @@ #ifndef I386_BSD_NAT_H #define I386_BSD_NAT_H +#include "x86-bsd-nat.h" + /* Helper functions. See definitions. */ extern void i386bsd_fetch_inferior_registers (struct regcache *regcache, int regnum);