Bug 1525968 - Post: Make $topobjdir/.lldbinit reference full build symbols on Android. r=froydnj

Differential Revision: https://phabricator.services.mozilla.com/D19092

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Nick Alexander 2019-03-27 22:37:58 +00:00
parent fbb2df205f
commit 0473ac6e86
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -114,6 +114,7 @@ OBJDIR_FILES += ['/.gdbinit']
# 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']