[all-commits] [llvm/llvm-project] 879a47: Add the ability to debug through an exec into ld

Greg Clayton via All-commits all-commits at lists.llvm.org
Mon May 9 16:07:57 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 879a47a55ffb94976cbac1d191ef53be135d86a7
      https://github.com/llvm/llvm-project/commit/879a47a55ffb94976cbac1d191ef53be135d86a7
  Author: Greg Clayton <gclayton at fb.com>
  Date:   2022-05-09 (Mon, 09 May 2022)

  Changed paths:
    M lldb/source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp
    A lldb/test/API/functionalities/dyld-exec-linux/Makefile
    A lldb/test/API/functionalities/dyld-exec-linux/TestDyldExecLinux.py
    A lldb/test/API/functionalities/dyld-exec-linux/main.cpp

  Log Message:
  -----------
  Add the ability to debug through an exec into ld

A previous commit enabled LLDB to be able to debug a program launched via ld: https://reviews.llvm.org/D108061.

This commit adds the ability to debug a program launched via ld when it happens during an exec into the dynamic loader. There was an issue where after the exec we would locate the rendezvous structure right away but it didn't contain any valid values and we would try to set the dyanamic loader breakpoint at address zero. This patch fixes that and adds a test.

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




More information about the All-commits mailing list