Bug 1525968 - Post: Make $topobjdir/.lldbinit reference full build symbols on Android. r=froydnj
authorNick Alexander <nalexander@mozilla.com>
Wed, 27 Mar 2019 22:37:58 +0000
changeset 467453 4ebb324c0d9534dcecb301ea3f58887bc1f74f35
parent 467452 bcc2aef70db38869ae7efae558e28d431cab9d15
child 467454 360e565d9175b08cbec70e1bdf5e5a14dbeb0713
push id35799
push usercbrindusan@mozilla.com
push dateTue, 02 Apr 2019 08:35:12 +0000
treeherdermozilla-central@ea0977445697 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1525968
milestone68.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 1525968 - Post: Make $topobjdir/.lldbinit reference full build symbols on Android. r=froydnj Differential Revision: https://phabricator.services.mozilla.com/D19092
build/.lldbinit.in
build/moz.build
--- a/build/.lldbinit.in
+++ b/build/.lldbinit.in
@@ -1,2 +1,17 @@
 #filter substitution
 script topsrcdir = "@topsrcdir@"; lldb.debugger.HandleCommand("command source -s true '%s'" % os.path.join(topsrcdir, ".lldbinit"))
+
+#ifdef MOZ_WIDGET_ANDROID
+settings set symbols.enable-external-lookup true
+
+# This is where libxul.so and libmozglue.so are produced in full builds.
+settings append target.exec-search-paths @topobjdir@/toolkit/library
+settings append target.exec-search-paths @topobjdir@/mozglue/build
+
+# This is where artifact builds unpacks "crashreporter-symbols-full.zip" uncompressed ELF debug symbols.
+settings append target.debug-file-search-paths @topobjdir@/dist/crashreporter-symbols
+
+# These are specific paths encoded into Mozilla's automation outputs.
+settings append target.source-map /builds/worker/workspace/build/src/obj-firefox @topobjdir@
+settings append target.source-map /builds/worker/workspace/build/src @topsrcdir@
+#endif
--- a/build/moz.build
+++ b/build/moz.build
@@ -109,16 +109,17 @@ if CONFIG['ENABLE_TESTS']:
 # NOTE: Keep .gdbinit in the topsrcdir for people who run gdb from the topsrcdir.
 OBJDIR_FILES += ['/.gdbinit']
 
 # 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.
 DEFINES['topsrcdir'] = TOPSRCDIR
+DEFINES['topobjdir'] = TOPOBJDIR
 FINAL_TARGET_PP_FILES += ['.lldbinit.in']
 OBJDIR_FILES += ['!/dist/bin/.lldbinit']
 
 # Put the .ycm_extra_conf.py file at the root of the objdir. It is used by
 # the vim plugin YouCompleteMe.
 OBJDIR_FILES += ['/.ycm_extra_conf.py']
 
 if CONFIG['MOZ_VALGRIND']: