003 File Manager
Current Path:
/usr/src/contrib/llvm-project/lldb/source/Plugins/Process/elf-core
usr
/
src
/
contrib
/
llvm-project
/
lldb
/
source
/
Plugins
/
Process
/
elf-core
/
📁
..
📄
ProcessElfCore.cpp
(32.61 KB)
📄
ProcessElfCore.h
(5.56 KB)
📄
RegisterContextPOSIXCore_arm.cpp
(2.25 KB)
📄
RegisterContextPOSIXCore_arm.h
(1.79 KB)
📄
RegisterContextPOSIXCore_arm64.cpp
(2.88 KB)
📄
RegisterContextPOSIXCore_arm64.h
(1.85 KB)
📄
RegisterContextPOSIXCore_mips64.cpp
(3 KB)
📄
RegisterContextPOSIXCore_mips64.h
(1.88 KB)
📄
RegisterContextPOSIXCore_powerpc.cpp
(3.59 KB)
📄
RegisterContextPOSIXCore_powerpc.h
(1.98 KB)
📄
RegisterContextPOSIXCore_ppc64le.cpp
(4.6 KB)
📄
RegisterContextPOSIXCore_ppc64le.h
(1.73 KB)
📄
RegisterContextPOSIXCore_s390x.cpp
(3.04 KB)
📄
RegisterContextPOSIXCore_s390x.h
(1.83 KB)
📄
RegisterContextPOSIXCore_x86_64.cpp
(2.92 KB)
📄
RegisterContextPOSIXCore_x86_64.h
(1.69 KB)
📄
RegisterUtilities.cpp
(1.34 KB)
📄
RegisterUtilities.h
(3.94 KB)
📄
ThreadElfCore.cpp
(13.69 KB)
📄
ThreadElfCore.h
(4.72 KB)
Editing: RegisterContextPOSIXCore_arm.cpp
//===-- RegisterContextPOSIXCore_arm.cpp ----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #include "RegisterContextPOSIXCore_arm.h" #include "lldb/Target/Thread.h" #include "lldb/Utility/RegisterValue.h" #include <memory> using namespace lldb_private; RegisterContextCorePOSIX_arm::RegisterContextCorePOSIX_arm( Thread &thread, RegisterInfoInterface *register_info, const DataExtractor &gpregset, llvm::ArrayRef<CoreNote> notes) : RegisterContextPOSIX_arm(thread, 0, register_info) { m_gpr_buffer = std::make_shared<DataBufferHeap>(gpregset.GetDataStart(), gpregset.GetByteSize()); m_gpr.SetData(m_gpr_buffer); m_gpr.SetByteOrder(gpregset.GetByteOrder()); } RegisterContextCorePOSIX_arm::~RegisterContextCorePOSIX_arm() {} bool RegisterContextCorePOSIX_arm::ReadGPR() { return true; } bool RegisterContextCorePOSIX_arm::ReadFPR() { return false; } bool RegisterContextCorePOSIX_arm::WriteGPR() { assert(0); return false; } bool RegisterContextCorePOSIX_arm::WriteFPR() { assert(0); return false; } bool RegisterContextCorePOSIX_arm::ReadRegister(const RegisterInfo *reg_info, RegisterValue &value) { lldb::offset_t offset = reg_info->byte_offset; if (offset + reg_info->byte_size <= GetGPRSize()) { uint64_t v = m_gpr.GetMaxU64(&offset, reg_info->byte_size); if (offset == reg_info->byte_offset + reg_info->byte_size) { value = v; return true; } } return false; } bool RegisterContextCorePOSIX_arm::ReadAllRegisterValues( lldb::DataBufferSP &data_sp) { return false; } bool RegisterContextCorePOSIX_arm::WriteRegister(const RegisterInfo *reg_info, const RegisterValue &value) { return false; } bool RegisterContextCorePOSIX_arm::WriteAllRegisterValues( const lldb::DataBufferSP &data_sp) { return false; } bool RegisterContextCorePOSIX_arm::HardwareSingleStep(bool enable) { return false; }
Upload File
Create Folder