Skip to content

Commit 884a82d

Browse files
committed
Fix CI fail and fcsr format issues
1 parent bd8409d commit 884a82d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_loongarch64.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ RegisterContextCorePOSIX_loongarch64::RegisterContextCorePOSIX_loongarch64(
3131
: RegisterContextPOSIX_loongarch64(thread, std::move(register_info)) {
3232

3333
m_gpr.SetData(std::make_shared<DataBufferHeap>(gpregset.GetDataStart(),
34-
gpregset.GetByteSize()));
34+
gpregset.GetByteSize()));
3535
m_gpr.SetByteOrder(gpregset.GetByteOrder());
3636

3737
ArchSpec arch = m_register_info_up->GetTargetArchitecture();
3838
DataExtractor fpregset = getRegset(notes, arch.GetTriple(), FPR_Desc);
3939
m_fpr.SetData(std::make_shared<DataBufferHeap>(fpregset.GetDataStart(),
40-
fpregset.GetByteSize()));
40+
fpregset.GetByteSize()));
4141
m_fpr.SetByteOrder(fpregset.GetByteOrder());
4242
}
4343

lldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_loongarch64.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===-- RegisterContextPOSIXCore_loongarch64.h ----------------------*- C++ -*-===//
1+
//===-- RegisterContextPOSIXCore_loongarch64.h -------------------*- C++-*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -19,7 +19,8 @@
1919

2020
#include <memory>
2121

22-
class RegisterContextCorePOSIX_loongarch64 : public RegisterContextPOSIX_loongarch64 {
22+
class RegisterContextCorePOSIX_loongarch64
23+
: public RegisterContextPOSIX_loongarch64 {
2324
public:
2425
static std::unique_ptr<RegisterContextCorePOSIX_loongarch64>
2526
Create(lldb_private::Thread &thread, const lldb_private::ArchSpec &arch,

lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ def test_loongarch64_regs(self):
929929
fpr_values["fcc5"] = "0x01"
930930
fpr_values["fcc6"] = "0x00"
931931
fpr_values["fcc7"] = "0x01"
932-
fpr_values["fcsr"] = "0x0000"
932+
fpr_values["fcsr"] = "0x00000000"
933933

934934
for regname, value in values.items():
935935
self.expect(
@@ -945,7 +945,6 @@ def test_loongarch64_regs(self):
945945

946946
self.expect("register read --all")
947947

948-
949948
def test_get_core_file_api(self):
950949
"""
951950
Test SBProcess::GetCoreFile() API can successfully get the core file.

0 commit comments

Comments
 (0)