From 71903a151d960a2fe924f5c36fb6b93fab9c58ba Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 21 Jul 2005 19:37:41 +0000 Subject: [PATCH] This is the kind of small bug that takes hours to track down: The missing grist caused bfd to be compiled using gdb's config.h. This made it think Haiku had no fcntl() and thus assumed shared objects were opened r/w instead of read-only, which made it write back data when closing the files. So this fixes the problem that gdb damages the shared objects it had loaded. Basically two questions remain: 1) Why does BFD write something into the files that makes them invalid? 2) Why was it possible to write something into the read-only opened files? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13791 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/gdb/bfd/Jamfile | 2 +- src/bin/gdb/gdb/Jamfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/gdb/bfd/Jamfile b/src/bin/gdb/bfd/Jamfile index f23b64fbb9..db7a3ade5d 100644 --- a/src/bin/gdb/bfd/Jamfile +++ b/src/bin/gdb/bfd/Jamfile @@ -152,7 +152,7 @@ rule BFDCopyConfigHeaders local sources = $(1:G=$(SOURCE_GRIST:E)!config) ; local source ; - for source in $(1) { + for source in $(sources) { local target = [ FGristFiles $(source) ] ; File $(target) : $(source) ; SEARCH on $(source) = [ FDirName $(SUBDIR) config-$(OBOS_ARCH) ] ; diff --git a/src/bin/gdb/gdb/Jamfile b/src/bin/gdb/gdb/Jamfile index 76777bb273..6ec1201762 100644 --- a/src/bin/gdb/gdb/Jamfile +++ b/src/bin/gdb/gdb/Jamfile @@ -283,7 +283,7 @@ rule GDBCopyConfigFiles local sources = $(1:G=$(SOURCE_GRIST:E)!config) ; local source ; - for source in $(1) { + for source in $(sources) { local target = [ FGristFiles $(source) ] ; File $(target) : $(source) ; SEARCH on $(source) = [ FDirName $(SUBDIR) config-$(OBOS_ARCH) ] ;