From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2023) id 3C19539450CD; Sat, 14 Mar 2020 15:50:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C19539450CD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1584201045; bh=0KxxcPbZLOsc76wv9wdfE5UW/Y5PriOpdvs1D1rS6bw=; h=From:To:Subject:Date:From; b=cE5VV/AxfAGt4X1regOmVx5JYCTvU33PuCa6fFQ34DiL9ZRWVk8qENhYTsc7l6mXW LPQJlQofmLnhUrdeMvHaObAlSjPbP3zJPrFvL0VtsGliN0TaX2BwibpGmuT8NV27VE Xloi2bLrdOAOSu5yhkf6N83prusR31ed9AytLhG0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Kamil Rytarowski To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Define _KERNTYPES in m68k-bsd-nat.c X-Act-Checkin: binutils-gdb X-Git-Author: Kamil Rytarowski X-Git-Refname: refs/heads/master X-Git-Oldrev: 6def66f1404e58b376655f6fb622aeb9dfc0f587 X-Git-Newrev: f90280caf5b34ebd564809a7f66685efc79bbf6d Message-Id: <20200314155045.3C19539450CD@sourceware.org> Date: Sat, 14 Mar 2020 15:50:45 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Mar 2020 15:50:45 -0000 https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=f90280caf5b34ebd564809a7f66685efc79bbf6d commit f90280caf5b34ebd564809a7f66685efc79bbf6d Author: Kamil Rytarowski Date: Sat Mar 14 16:49:41 2020 +0100 Define _KERNTYPES in m68k-bsd-nat.c Fixes build on NetBSD. types.h does not define register_t by default. gdb/ChangeLog: * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of register_t. Diff: --- gdb/ChangeLog | 5 +++++ gdb/m68k-bsd-nat.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e4b4e681977..26429a81a31 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2020-03-14 Kamil Rytarowski + + * m68k-bsd-nat.c: Define _KERNTYPES to get the declaration of + register_t. + 2020-03-14 Kamil Rytarowski * alpha-bsd-nat.c (fetch_registers): New variable lwp and pass diff --git a/gdb/m68k-bsd-nat.c b/gdb/m68k-bsd-nat.c index 184b5c25d72..9f0ecf90957 100644 --- a/gdb/m68k-bsd-nat.c +++ b/gdb/m68k-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 "gdbcore.h" #include "inferior.h"