Bug 941539 - Add a .lldbinit file to the tree and make the build system install it to $(DIST)/bin
authorJonathan Watt <jwatt@jwatt.org>
Fri, 22 Nov 2013 13:32:54 +0000
changeset 157054 8aaed2b8853807676d795241f7557b861582442a
parent 157053 fdb9fe9e898fab8275daac054eaa22654e7d0244
child 157055 13e33fcc873dd19edac0a3f6beebd285e4f13dbb
push id25697
push userryanvm@gmail.com
push dateFri, 22 Nov 2013 20:18:23 +0000
treeherdermozilla-central@e9796b650e93 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs941539
milestone28.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 941539 - Add a .lldbinit file to the tree and make the build system install it to $(DIST)/bin
.lldbinit
build/Makefile.in
new file mode 100644
--- /dev/null
+++ b/.lldbinit
@@ -0,0 +1,7 @@
+# .lldbinit file for debugging Mozilla
+
+# Mozilla's use of UNIFIED_SOURCES to include multiple source files into a
+# single compiled file breaks lldb breakpoint setting. This works around that.
+# See http://lldb.llvm.org/troubleshooting.html for more info.
+settings set target.inline-breakpoint-strategy always
+
--- a/build/Makefile.in
+++ b/build/Makefile.in
@@ -71,16 +71,25 @@ 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_DEST = $(FINAL_TARGET)
 INSTALL_TARGETS += GDBINIT
 
+# Put a useful .lldbinit in the bin directory, to be picked up automatically
+# by LLDB when we debug executables using that directory as the current working
+# directory.
+# NOTE: Keep .lldbinit in the topsrcdir for people who run LLDB from the
+# topsrcdir rather than the bin directory.
+LLDBINIT_FILES := $(topsrcdir)/.lldbinit
+LLDBINIT_DEST = $(FINAL_TARGET)
+INSTALL_TARGETS += LLDBINIT
+
 include $(topsrcdir)/config/rules.mk
 
 # we install to _leaktest/
 TARGET_DEPTH = ..
 include $(srcdir)/automation-build.mk
 
 _LEAKTEST_DIR = $(DEPTH)/_leaktest