[Lldb-commits] [PATCH] D95696: [lldb] [Process/FreeBSDRemote] Introduce arm (32-bit) support

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 29 13:24:03 PST 2021


mgorny created this revision.
mgorny added reviewers: labath, emaste, krytarowski, clayborg.
Herald added subscribers: omjavaid, kristof.beyls, arichardson.
mgorny requested review of this revision.

Introduce a NativeRegisterContextFreeBSD for 32-bit ARM platform.
This includes support for GPR + VFP registers as exposed by FreeBSD's
ptrace(2) API.  Hardware breakpoints or watchpoints are not supported
due to missing kernel support.  The code is roughly based on the arm64
context.

It also includes an override for GetSoftwareBreakpointTrapOpcode() based
on the matching code in the PlatformFreeBSD plugin.


https://reviews.llvm.org/D95696

Files:
  lldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp
  lldb/source/Plugins/Process/FreeBSDRemote/CMakeLists.txt
  lldb/source/Plugins/Process/FreeBSDRemote/NativeProcessFreeBSD.cpp
  lldb/source/Plugins/Process/FreeBSDRemote/NativeProcessFreeBSD.h
  lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_arm.cpp
  lldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_arm.h
  lldb/unittests/Process/Utility/RegisterContextFreeBSDTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95696.320203.patch
Type: text/x-patch
Size: 16157 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210129/ae7bb773/attachment-0001.bin>


More information about the lldb-commits mailing list