bug 983335 - install .gdbinit to the objdir as well as dist/bin r=mshal
authorTrevor Saunders <trev.saunders@gmail.com>
Thu, 13 Mar 2014 16:37:20 -0400
changeset 173927 4f6e41f47e9fe14bbc2533cdcc5e41101bc7d48c
parent 173926 46c389bf27d9f9e528d98eac6c71059d0ec96911
child 173928 e6ce7d3440695152d421e738fa32adc5267edcf0
push idunknown
push userunknown
push dateunknown
reviewersmshal
bugs983335
milestone30.0a1
bug 983335 - install .gdbinit to the objdir as well as dist/bin r=mshal
build/Makefile.in
--- a/build/Makefile.in
+++ b/build/Makefile.in
@@ -39,18 +39,22 @@ ifneq (,$(source_repo))
 endif
 
 endif
 
 # Put a useful .gdbinit in the bin directory, to be picked up automatically
 # by GDB when we debug executables there.
 # NOTE: Keep .gdbinit in the topsrcdir for people who run gdb from the topsrcdir.
 GDBINIT_FILES := $(topsrcdir)/.gdbinit
+GDBINIT_OBJDIR_FILES = $(topsrcdir)/.gdbinit
 GDBINIT_DEST = $(FINAL_TARGET)
-INSTALL_TARGETS += GDBINIT
+
+# needs to be absolute to be distinct from $(topsrcdir)/.gdbinit
+GDBINIT_OBJDIR_DEST = $(abspath $(DEPTH))
+INSTALL_TARGETS += GDBINIT GDBINIT_OBJDIR
 
 # Put a .lldbinit in the bin directory and the objdir, to be picked up
 # automatically by LLDB when we debug executables using either of those two
 # directories as the current working directory.  The .lldbinit file will
 # load $(topsrcdir)/.lldbinit, which is where the actual debugging commands are.
 LLDBINIT_OBJDIR := .lldbinit.in
 LLDBINIT_OBJDIR_PATH = $(DEPTH)
 LLDBINIT_OBJDIR_FLAGS += -Dtopsrcdir=$(abspath $(topsrcdir))