From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 74546 invoked by alias); 6 Jan 2017 14:19:19 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 74266 invoked by uid 89); 6 Jan 2017 14:19:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=obv, H*f:sk:1483712, H*i:sk:1483712, H*MI:sk:1483712 X-HELO: mail-pg0-f66.google.com Received: from mail-pg0-f66.google.com (HELO mail-pg0-f66.google.com) (74.125.83.66) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 06 Jan 2017 14:19:09 +0000 Received: by mail-pg0-f66.google.com with SMTP id 75so5953408pgf.3 for ; Fri, 06 Jan 2017 06:19:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=nQaSJ2r1vUyPDFQ9I3DW1JjRyqjp7DxIkRm0rs4DCu4=; b=PVgLTM7XBIu6nbdLJVy+1EwwNMxinihgxTPYYM7YHFNN2zD0UkHCXLUM4QG7l+Hz7U KfyFALcLbLwi+5dnzhVAxU50K2D00mgiVKwyNpD1Ui/G4qSbQ3B83f34TNXDamYRJp7b 025IJ9aGT2RH32KwnxqX+5quBa1g+to6LhRvFQSBevuS+bUPu8Ex575GxXmNIfbHxU/X 72ilVrN4lBz64HkN2+1EBo5hLGhgobiX4GKZzIffmlYnRc6DKL2vMj/wy4ZIfr1cWTHe w9nCi1A/DMI/jOTXnOMFRw9qTXek9wgCRJHM6erUcFFGIz6QbtqFqq6eGYbrfqTZo6E2 UzCw== X-Gm-Message-State: AIkVDXJSg8V6TrRCXxcuYGxCXmNSsVvtYjFIKmU30knEIXKpzXL6L1aeS7fJMotvKg+Ipg== X-Received: by 10.99.123.3 with SMTP id w3mr135299525pgc.155.1483712347928; Fri, 06 Jan 2017 06:19:07 -0800 (PST) Received: from E107787-LIN.cambridge.arm.com (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id w11sm160505217pfk.75.2017.01.06.06.19.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Jan 2017 06:19:07 -0800 (PST) From: Yao Qi X-Google-Original-From: Yao Qi To: gdb-patches@sourceware.org Subject: [PATCH OBV 04/10] Include target.h in inf-loop.h Date: Fri, 06 Jan 2017 14:19:00 -0000 Message-Id: <1483712340-9157-4-git-send-email-yao.qi@linaro.org> In-Reply-To: <1483712340-9157-1-git-send-email-yao.qi@linaro.org> References: <1483712340-9157-1-git-send-email-yao.qi@linaro.org> X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00090.txt.bz2 $ make check-headers CHECK_HEADERS="target.h inf-loop.h" ... ../../binutils-gdb/gdb/inf-loop.h:23:42: error: use of enum 'inferior_event_type' without previous declaration extern void inferior_event_handler (enum inferior_event_type event_type, ^ gdb: 2017-01-06 Yao Qi * inf-loop.c: Don't include "target.h". * inf-loop.h: Include it here. --- gdb/inf-loop.c | 1 - gdb/inf-loop.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c index 679149e..bb9fa01 100644 --- a/gdb/inf-loop.c +++ b/gdb/inf-loop.c @@ -20,7 +20,6 @@ #include "defs.h" #include "inferior.h" #include "infrun.h" -#include "target.h" /* For enum inferior_event_type. */ #include "event-loop.h" #include "event-top.h" #include "inf-loop.h" diff --git a/gdb/inf-loop.h b/gdb/inf-loop.h index b76c2ee..a5d0747 100644 --- a/gdb/inf-loop.h +++ b/gdb/inf-loop.h @@ -20,6 +20,8 @@ #ifndef INF_LOOP_H #define INF_LOOP_H +#include "target.h" /* For enum inferior_event_type. */ + extern void inferior_event_handler (enum inferior_event_type event_type, void* client_data); -- 1.9.1