From patchwork Mon Jul 9 09:34:22 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julio Guerra X-Patchwork-Id: 28280 Received: (qmail 130701 invoked by alias); 9 Jul 2018 09:34:27 -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 130437 invoked by uid 89); 9 Jul 2018 09:34:27 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.0 required=5.0 tests=AWL, BAYES_50, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=protocol, kratochvil, Kratochvil, sk:gdb-add X-HELO: a2-138.smtp-out.eu-west-1.amazonses.com Received: from a2-138.smtp-out.eu-west-1.amazonses.com (HELO a2-138.smtp-out.eu-west-1.amazonses.com) (54.240.2.138) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 09 Jul 2018 09:34:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=jl7vyxitgsfircfdhxflkj2c3tgxidze; d=farjump.io; t=1531128862; h=Subject:From:To:Cc:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:References:Message-Id; bh=lTo38JKPHUEF1FJ8YrqV0vVftVIxS3xIhL2K8TcvRHg=; b=DxoSxtEaASYE8W+piz53MAxLFffOukuFWIGDIuiaamfbpGqvFbBXmTtBRfm5lDpV 3yeoDApgGXviTndhNMJc9BGzHK3pKwMVMCjLsN3t2fTi7EEXmqNo8yejsHiyuqX+GI/ oCn/lTChW1Ulju+0UfxGIFifrBADJdseqwGyAR5A= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=uku4taia5b5tsbglxyj6zym32efj7xqv; d=amazonses.com; t=1531128862; h=Subject:From:To:Cc:Date:Mime-Version:Content-Type:Content-Transfer-Encoding:References:Message-Id:Feedback-ID; bh=lTo38JKPHUEF1FJ8YrqV0vVftVIxS3xIhL2K8TcvRHg=; b=JellrKZ5Ss9E/fPVP41V4cfK7OV8tcdZSvPPT8NAK9O4I2DyPT8kjLJ4TswifWXp v3eEineWZJF/77voyc+hzI18jmsiWVN0E/Mq5/1H3K7WBQbdd9QN4OQDcO1niwopC+u YaxrHfteUDWbQM/3mAEBnm+uf3t/f94v40q28y2Y= Subject: [PATCH] Install fileio.h to share File I/O protocol type definitions From: =?UTF-8?Q?Julio_Guerra?= To: =?UTF-8?Q?gdb-patches=40sourceware=2Eorg?= Cc: =?UTF-8?Q?Pedro_Alves?= , =?UTF-8?Q?Julio_Guerra?= Date: Mon, 9 Jul 2018 09:34:22 +0000 Mime-Version: 1.0 References: <20180709093410.63068-1-julio@farjump.io> X-Original-Mailer: git-send-email 2.18.0 Message-ID: <010201647e64586b-d00b8b01-c2d4-4b0d-8f9c-3485ccafa87c-000000@eu-west-1.amazonses.com> Prevent remote programs from redefining File I/O protocol types by installing include/gdb/fileio.h to share its type definitions. Signed-off-by: Julio Guerra --- gdb/ChangeLog | 4 ++++ gdb/Makefile.in | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) -- 2.18.0 diff --git a/gdb/ChangeLog b/gdb/ChangeLog index eb65f91488..9cb2710f4c 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2018-07-09 Julio Guerra + + * Makefile.in (install-only): Install include/gdb/fileio.h. + 2018-07-07 Jan Kratochvil * contrib/gdb-add-index.sh ($dwarf5): New, use it. diff --git a/gdb/Makefile.in b/gdb/Makefile.in index 13627e07e0..6998a70c0c 100644 --- a/gdb/Makefile.in +++ b/gdb/Makefile.in @@ -1747,7 +1747,8 @@ install-only: $(CONFIG_INSTALL) $(INSTALL_PROGRAM) gdb$(EXEEXT) \ $(DESTDIR)$(bindir)/$$transformed_name$(EXEEXT) ; \ $(SHELL) $(srcdir)/../mkinstalldirs $(DESTDIR)$(includedir)/gdb ; \ - $(INSTALL_DATA) jit-reader.h $(DESTDIR)$(includedir)/gdb/jit-reader.h + $(INSTALL_DATA) jit-reader.h $(DESTDIR)$(includedir)/gdb/jit-reader.h ; \ + $(INSTALL_DATA) $(INCLUDE_DIR)/gdb/fileio.h $(DESTDIR)$(includedir)/gdb/fileio.h if test "x$(HAVE_NATIVE_GCORE_TARGET)$(HAVE_NATIVE_GCORE_HOST)" != x; \ then \ transformed_name=`t='$(program_transform_name)'; \