From 25567eeece4efdea99a9a2b3a6daf81ec31b4b07 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sat, 14 Mar 2020 12:20:01 +0100 Subject: [PATCH] Define _KERNTYPES in vax-bsd-nat.c Fixes build on NetBSD. types.h does not define register_t by default. gdb/ChangeLog: * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of register_t. --- gdb/ChangeLog | 5 +++++ gdb/vax-bsd-nat.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a4ed9944407..08786335f5f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-03-14 Kamil Rytarowski + + * vax-bsd-nat.c: Define _KERNTYPES to get the declaration of + register_t. + 2020-03-13 Tom Tromey * value.h (val_print): Don't declare. diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c index 899f3e3ed9c..652f335c1cc 100644 --- a/gdb/vax-bsd-nat.c +++ b/gdb/vax-bsd-nat.c @@ -17,6 +17,8 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ +/* We define this to get types like register_t. */ +#define _KERNTYPES #include "defs.h" #include "inferior.h" #include "regcache.h" -- 2.30.2