From patchwork Fri Jan 24 14:14:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Biesinger X-Patchwork-Id: 37526 Received: (qmail 72513 invoked by alias); 24 Jan 2020 14:15:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 72406 invoked by uid 89); 24 Jan 2020 14:15:21 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:1272, HContent-Transfer-Encoding:8bit X-HELO: mail-wr1-f66.google.com Received: from mail-wr1-f66.google.com (HELO mail-wr1-f66.google.com) (209.85.221.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 Jan 2020 14:15:19 +0000 Received: by mail-wr1-f66.google.com with SMTP id c9so2153208wrw.8 for ; Fri, 24 Jan 2020 06:15:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YHlT077I+fuL9gWNDnbZEFPbUa5JPv+WSyPYaZ3mN/k=; b=lrZqnBbugIXThCWNA5W5goNJASTEqniphZj3FY1IYAqbQ21eYz1Rl2124trQ1nlbBu SJOC/4rx81sEss/zYXzkWtZacJfUPhv4MauqkVNDGTjS/1wkOsZRi+lxiyZMVEjVdH+g WbErZbn+A+pBnN0jaO3nVD9+KkBp/NFx+fq/M= Return-Path: Received: from cbiesinger.roam.corp.google.com (fanzine.igalia.com. [178.60.130.6]) by smtp.googlemail.com with ESMTPSA id t25sm6974515wmj.19.2020.01.24.06.15.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2020 06:15:16 -0800 (PST) From: cbiesinger@chromium.org To: gdb-patches@sourceware.org Cc: Christian Biesinger Subject: [PATCH 2/3] Define _KMEMUSER in arm-nbsd-nat.c Date: Fri, 24 Jan 2020 15:14:57 +0100 Message-Id: <20200124141458.171392-3-cbiesinger@chromium.org> In-Reply-To: <20200124141458.171392-1-cbiesinger@chromium.org> References: <20200124141458.171392-1-cbiesinger@chromium.org> MIME-Version: 1.0 From: Christian Biesinger Fixes the below compile error on ARM NetBSD 9.0_RC1 (the only version I tested). types.h does not define register_t by default. We already use this define elsewhere, notably in bsd-kvm.c. In file included from ../../gdb/arm-nbsd-nat.c:28: /usr/include/machine/frame.h:54:2: error: unknown type name 'register_t'; did you mean '__register_t'? register_t tf_spsr; ^ /usr/include/machine/types.h:77:14: note: '__register_t' declared here typedef int __register_t; ^ There are other compile errors that this does not fix. gdb/ChangeLog: 2020-01-24 Christian Biesinger * arm-nbsd-nat.c: Define _KMEMUSER to get the declaration of register_t. Change-Id: I82c21d38189ee59ea0af2538ba84b771d268722e --- gdb/arm-nbsd-nat.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gdb/arm-nbsd-nat.c b/gdb/arm-nbsd-nat.c index 00f919194b..31fe66c724 100644 --- a/gdb/arm-nbsd-nat.c +++ b/gdb/arm-nbsd-nat.c @@ -17,6 +17,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ + #include "defs.h" #include "gdbcore.h" #include "inferior.h"