[Lldb-commits] [PATCH] D125253: Add the ability to debug through an exec into ld

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon May 9 11:52:41 PDT 2022


clayborg created this revision.
clayborg added reviewers: labath, wallace, yinghuitan, rdhindsa.
Herald added a project: All.
clayborg requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125253

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125253.428148.patch
Type: text/x-patch
Size: 4841 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220509/5224e4a2/attachment.bin>


More information about the lldb-commits mailing list