Include the x86-bsd-nat.h header and fix the NetBSD/i386 build
authorKamil Rytarowski <n54@gmx.com>
Wed, 23 Sep 2020 01:56:46 +0000 (03:56 +0200)
committerKamil Rytarowski <n54@gmx.com>
Thu, 1 Oct 2020 22:37:38 +0000 (00:37 +0200)
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<BaseTarget>
      |                                                     ^
../../gdb/i386-bsd-nat.h:34:53: error: expected '{' before '<' token
../../gdb/i386-nbsd-nat.c:74:45: error: aggregate 'i386_bsd_nat_target<nbsd_nat_target> the_i386_nbsd_nat_target' has incomplete type and cannot be defined
   74 | static i386_bsd_nat_target<nbsd_nat_target> the_i386_nbsd_nat_target;
      |                                             ^~~~~~~~~~~~~~~~~~~~~~~~

gdb/ChangeLog:

* i386-bsd-nat.c: Include "x86-bsd-nat.h".

gdb/ChangeLog
gdb/i386-bsd-nat.h

index e297075f00b5ed2e4fef957d9223426ee0537c42..71aab702de6bd54350076da8c1f5fee14bc8028a 100644 (file)
@@ -1,3 +1,7 @@
+2020-10-01  Kamil Rytarowski  <n54@gmx.com>
+
+       * i386-bsd-nat.c: Include "x86-bsd-nat.h".
+
 2020-09-30  Tom de Vries  <tdevries@suse.de>
 
        PR symtab/26683
index f1c4fc6dfa072307c9ff6312621210320c3b44c0..be53ea0562696cc55a0b0b6c2da1bb2c1b5a2b13 100644 (file)
@@ -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);