Bug 1897179 - Update GeckoView native debugging docs with new symbols search dir. r=geckoview-reviewers,nalexander,ohall

The location of the built libraries was changed by bug 1459764.

Additionally update the search paths in the .lldbinit file that gets
put in the objdir during build.

Differential Revision: https://phabricator.services.mozilla.com/D210667
This commit is contained in:
Jamie Nicol 2024-05-17 10:36:48 +00:00
parent c87942ae04
commit 49e398ebff
2 changed files with 5 additions and 10 deletions

View file

@ -8,9 +8,7 @@ script topsrcdir = "@topsrcdir@"; lldb.debugger.HandleCommand("command source -s
settings set symbols.enable-external-lookup true settings set symbols.enable-external-lookup true
# This is where libxul.so and libmozglue.so are produced in full builds. # This is where libxul.so and libmozglue.so are produced in full builds.
settings append target.exec-search-paths @topobjdir@/toolkit/library/build settings append target.exec-search-paths @topobjdir@/dist/bin
settings append target.exec-search-paths @topobjdir@/mozglue/build
settings append target.exec-search-paths @topobjdir@/security
# This is where artifact builds unpacks "crashreporter-symbols-full" uncompressed ELF debug symbols. # This is where artifact builds unpacks "crashreporter-symbols-full" uncompressed ELF debug symbols.
settings append target.debug-file-search-paths @topobjdir@/dist/crashreporter-symbols settings append target.debug-file-search-paths @topobjdir@/dist/crashreporter-symbols

View file

@ -64,15 +64,12 @@ exist) and add the following lines.
The first line tells LLDB to enable inline breakpoints - Android Studio The first line tells LLDB to enable inline breakpoints - Android Studio
will need this if you want to use visual breakpoints. will need this if you want to use visual breakpoints.
The remaining lines tell LLDB where to go to find the symbols for The next line tells LLDB where to go to find the symbols for debugging.
debugging.
.. code:: bash .. code:: bash
settings set target.inline-breakpoint-strategy always settings set target.inline-breakpoint-strategy always
settings append target.exec-search-paths <PATH>/objdir-android-opt/toolkit/library/build settings append target.exec-search-paths <PATH>/objdir-android-opt/dist/bin
settings append target.exec-search-paths <PATH>/objdir-android-opt/mozglue/build
settings append target.exec-search-paths <PATH>/objdir-android-opt/security
Set up Android Studio to perform native debugging. Set up Android Studio to perform native debugging.
================================================== ==================================================
@ -89,8 +86,8 @@ Set up Android Studio to perform native debugging.
that configures Gecko and child processes in order to attach that configures Gecko and child processes in order to attach
debuggers at the correct times. debuggers at the correct times.
4. Under ``Symbol Directories``, add a new path pointing to 4. Under ``Symbol Directories``, add a new path pointing to
``<PATH>/objdir-android-opt/toolkit/library/build``, the same path ``<PATH>/objdir-android-opt/dist/bin``, the same path that you
that you entered into your ``.lldbinit`` file. entered into your ``.lldbinit`` file.
5. Select ``Apply`` and ``OK`` to close the window. 5. Select ``Apply`` and ``OK`` to close the window.
Debug Native code in Android Studio Debug Native code in Android Studio