[all-commits] [llvm/llvm-project] 96d121: Allow firmware binaries to be specified only by lo...

Jason Molenda via All-commits all-commits at lists.llvm.org
Tue Aug 2 14:14:31 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96d12187b3d28f63d29802a7af49dfe53cc306f3
  Author: Jason Molenda <jason at molenda.com>
  Date:   2022-08-02 (Tue, 02 Aug 2022)

  Changed paths:
    M lldb/docs/lldb-gdb-remote.txt
    M lldb/include/lldb/Target/DynamicLoader.h
    M lldb/source/Core/DynamicLoader.cpp
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
    M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
    M lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
    M lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
    M lldb/source/Utility/UuidCompatibility.h
    A lldb/test/API/macosx/lc-note/multiple-binary-corefile/Makefile
    A lldb/test/API/macosx/lc-note/multiple-binary-corefile/TestMultipleBinaryCorefile.py
    A lldb/test/API/macosx/lc-note/multiple-binary-corefile/create-multibin-corefile.cpp
    A lldb/test/API/macosx/lc-note/multiple-binary-corefile/main.c
    A lldb/test/API/macosx/lc-note/multiple-binary-corefile/one.c
    A lldb/test/API/macosx/lc-note/multiple-binary-corefile/two.c

  Log Message:
  Allow firmware binaries to be specified only by load address

Add support to Mach-O corefiles and to live gdb remote serial protocol
connections for the corefile/remote stub to provide a list of load
addresses of binaries that should be found & loaded by lldb, and nothing
else.  lldb will try to parse the binary out of memory, and if it can
find a UUID, try to find a binary & its debug information based on the
UUID, falling back to using the memory image if it must.

A bit of code unification from three parts of lldb that were loading
individual binaries already, so there is a shared method in
DynamicLoader to handle all of the variations they were doing.

Re-landing this with a uuid_is_null() implementation added to
Utility/UuidCompatibility.h for non-Darwin systems.

Differential Revision: https://reviews.llvm.org/D130813

More information about the All-commits mailing list