Skip to content

Commit

Permalink
Bug 775789: Install .gdbinit correctly in $(DIST)/bin. r=glandium
Browse files Browse the repository at this point in the history
--HG--
rename : .gdbinit => build/.gdbinit
  • Loading branch information
Jim Blandy committed Dec 2, 2012
1 parent 6187bab commit 96292fe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,6 @@ maybe_clobber_profiledbuild:
find $(DIST)/$(MOZ_APP_NAME) -name "*.pgc" -exec mv {} $(DIST)/bin \;
endif

# put in our default gdbinit so that the gdb debugging experience is happier.
libs:: .gdbinit
$(INSTALL) $< $(DIST)/bin

.PHONY: maybe_clobber_profiledbuild

# Look for R_386_PC32 relocations in shared libs, these
Expand Down
6 changes: 6 additions & 0 deletions .gdbinit → build/.gdbinit
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# .gdbinit file for debugging Mozilla

# You may need to put an 'add-auto-load-safe-path' command in your
# $HOME/.gdbinit file to get GDB to trust this file. If your builds are
# generally in $HOME/moz, then you can say:
#
# add-auto-load-safe-path ~/moz

# Don't stop for the SIG32/33/etc signals that Flash produces
handle SIG32 noprint nostop pass
handle SIG33 noprint nostop pass
Expand Down
6 changes: 6 additions & 0 deletions build/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,12 @@ endif

endif

# Put a useful .gdbinit in the bin directory, to be picked up automatically
# by GDB when we debug executables there.
GDBINIT_FILES := .gdbinit
GDBINIT_DEST = $(FINAL_TARGET)
INSTALL_TARGETS += GDBINIT

include $(topsrcdir)/config/rules.mk

# we install to _leaktest/
Expand Down

0 comments on commit 96292fe

Please sign in to comment.