[all-commits] [llvm/llvm-project] caea44: [lldb/plugins] Add arm64(e) support to ScriptedPro...

Med Ismail Bennani via All-commits all-commits at lists.llvm.org
Mon Dec 6 16:12:18 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: caea440a11e47bf86b0e43feb28a9287e4fbe3f8
      https://github.com/llvm/llvm-project/commit/caea440a11e47bf86b0e43feb28a9287e4fbe3f8
  Author: Med Ismail Bennani <medismail.bennani at gmail.com>
  Date:   2021-12-06 (Mon, 06 Dec 2021)

  Changed paths:
    M lldb/examples/python/scripted_process/scripted_process.py
    M lldb/source/Plugins/Process/scripted/ScriptedProcess.cpp
    M lldb/source/Plugins/Process/scripted/ScriptedThread.cpp
    M lldb/test/API/functionalities/scripted_process/TestScriptedProcess.py
    A lldb/test/API/functionalities/scripted_process/invalid_scripted_process.py

  Log Message:
  -----------
  [lldb/plugins] Add arm64(e) support to ScriptedProcess

This patch adds support for arm64(e) targets to ScriptedProcess, by
providing the `DynamicRegisterInfo` to the base `lldb.ScriptedThread` class.
This allows create and debugging ScriptedProcess on Apple Silicon
hardware as well as Apple mobile devices.

It also replace the C++ asserts on `ScriptedThread::GetDynamicRegisterInfo`
by some error logging, re-enables `TestScriptedProcess` for arm64
Darwin platforms and adds a new invalid Scripted Thread test.

rdar://85892451

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

Signed-off-by: Med Ismail Bennani <medismail.bennani at gmail.com>




More information about the All-commits mailing list