From 2190cf067b87e804c59c0a0c14c8ae48deabfbf4 Mon Sep 17 00:00:00 2001 From: Kamil Rytarowski Date: Sat, 14 Mar 2020 15:53:47 +0100 Subject: [PATCH] Define _KERNTYPES in alpha-bsd-nat.c Fixes build on NetBSD. types.h does not define register_t by default. gdb/ChangeLog: * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of register_t. --- gdb/ChangeLog | 5 +++++ gdb/alpha-bsd-nat.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 10f52ebbcef..4407064f43c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-03-14 Kamil Rytarowski + + * alpha-bsd-nat.c: Define _KERNTYPES to get the declaration of + register_t. + 2020-03-14 Kamil Rytarowski * arm-nbsd-nat.c (fetch_register): New variable lwp and pass diff --git a/gdb/alpha-bsd-nat.c b/gdb/alpha-bsd-nat.c index 747c3c5abb6..49f69f540e9 100644 --- a/gdb/alpha-bsd-nat.c +++ b/gdb/alpha-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