diff options
author | Kamil Rytarowski <n54@gmx.com> | 2020-09-23 03:56:46 +0200 |
---|---|---|
committer | Kamil Rytarowski <n54@gmx.com> | 2020-10-02 00:37:38 +0200 |
commit | 1eb6eb795fd3479c97d8aadc4f70d6afad5f8511 (patch) | |
tree | a24af9a1323ce465d6c4d55240848e9ca2f9abf8 /gdb | |
parent | 642f545a93326f570ef4718e9a26c29285943f27 (diff) | |
download | binutils-1eb6eb795fd3479c97d8aadc4f70d6afad5f8511.zip binutils-1eb6eb795fd3479c97d8aadc4f70d6afad5f8511.tar.gz binutils-1eb6eb795fd3479c97d8aadc4f70d6afad5f8511.tar.bz2 |
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<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".
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/i386-bsd-nat.h | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e297075..71aab70 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/i386-bsd-nat.h b/gdb/i386-bsd-nat.h index f1c4fc6..be53ea0 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); |