Patchwork Install fileio.h to share File I/O protocol type definitions

login
register
mail settings
Submitter Julio Guerra
Date July 9, 2018, 9:34 a.m.
Message ID <010201647e64586b-d00b8b01-c2d4-4b0d-8f9c-3485ccafa87c-000000@eu-west-1.amazonses.com>
Download mbox | patch
Permalink /patch/28280/
State New
Headers show

Comments

Julio Guerra - July 9, 2018, 9:34 a.m.
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 <julio@farjump.io>

---
 gdb/ChangeLog   | 4 ++++
 gdb/Makefile.in | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

-- 
2.18.0

Patch

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  <julio@farjump.io>

+

+	* Makefile.in (install-only): Install include/gdb/fileio.h.

+

 2018-07-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
 	* 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)'; \