[all-commits] [llvm/llvm-project] 2cab99: Add "process metadata" Mach-O LC_NOTE for corefiles

Jason Molenda via All-commits all-commits at lists.llvm.org
Mon Sep 11 16:46:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2cab996192cf143d10e3381fcefa75e270cc7ddb
      https://github.com/llvm/llvm-project/commit/2cab996192cf143d10e3381fcefa75e270cc7ddb
  Author: Jason Molenda <jason at molenda.com>
  Date:   2023-09-11 (Mon, 11 Sep 2023)

  Changed paths:
    M lldb/include/lldb/Symbol/ObjectFile.h
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
    M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
    M lldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
    M lldb/source/Plugins/Process/mach-core/ThreadMachCore.cpp
    M lldb/source/Plugins/Process/mach-core/ThreadMachCore.h
    M lldb/test/API/macosx/corefile-exception-reason/TestCorefileExceptionReason.py

  Log Message:
  -----------
  Add "process metadata" Mach-O LC_NOTE for corefiles

Add a new LC_NOTE for Mach-O corefiles, "proces metadata", which is a
JSON string.  Currently there may be a `threads` key in the JSON,
and if `threads` is present, it is an array with the same number of
elements as there are LC_THREADs in the corefile.  This patch adds
support for a `thread_id` key-value for each `thread` entry, to
supply a thread ID for that LC_THREAD.

Differential Revision: https://reviews.llvm.org/D158785
rdar://113037252




More information about the All-commits mailing list