Skip to content

Commit e1d4fb1

Browse files
committed
[lldb] Fix build errors from 3bea730
The addition of the dummy constructors requires matching changes in os- and arch-specific files, which I forgot about.
1 parent 3bea730 commit e1d4fb1

6 files changed

+11
-7
lines changed

lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_x86_64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ NativeRegisterContextFreeBSD_x86_64::NativeRegisterContextFreeBSD_x86_64(
260260
const ArchSpec &target_arch, NativeThreadProtocol &native_thread)
261261
: NativeRegisterContextRegisterInfo(
262262
native_thread, CreateRegisterInfoInterface(target_arch)),
263-
m_regset_offsets({0}) {
263+
NativeRegisterContextDBReg_x86(native_thread), m_regset_offsets({0}) {
264264
assert(m_gpr.size() == GetRegisterInfoInterface().GetGPRSize());
265265
std::array<uint32_t, MaxRegSet + 1> first_regnos;
266266

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@ NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux(
5656

5757
NativeRegisterContextLinux_arm::NativeRegisterContextLinux_arm(
5858
const ArchSpec &target_arch, NativeThreadProtocol &native_thread)
59-
: NativeRegisterContextRegisterInfo(
60-
native_thread, new RegisterInfoPOSIX_arm(target_arch)) {
59+
: NativeRegisterContextRegisterInfo(native_thread,
60+
new RegisterInfoPOSIX_arm(target_arch)),
61+
NativeRegisterContextLinux(native_thread) {
6162
assert(target_arch.GetMachine() == llvm::Triple::arm);
6263

6364
::memset(&m_fpr, 0, sizeof(m_fpr));

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm64.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ NativeRegisterContextLinux_arm64::NativeRegisterContextLinux_arm64(
7676
const ArchSpec &target_arch, NativeThreadProtocol &native_thread,
7777
std::unique_ptr<RegisterInfoPOSIX_arm64> register_info_up)
7878
: NativeRegisterContextRegisterInfo(native_thread,
79-
register_info_up.release()) {
79+
register_info_up.release()),
80+
NativeRegisterContextLinux(native_thread) {
8081
::memset(&m_fpr, 0, sizeof(m_fpr));
8182
::memset(&m_gpr_arm64, 0, sizeof(m_gpr_arm64));
8283
::memset(&m_hwp_regs, 0, sizeof(m_hwp_regs));

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ NativeRegisterContextLinux::CreateHostNativeRegisterContextLinux(
128128
NativeRegisterContextLinux_ppc64le::NativeRegisterContextLinux_ppc64le(
129129
const ArchSpec &target_arch, NativeThreadProtocol &native_thread)
130130
: NativeRegisterContextRegisterInfo(
131-
native_thread, new RegisterInfoPOSIX_ppc64le(target_arch)) {
131+
native_thread, new RegisterInfoPOSIX_ppc64le(target_arch)),
132+
NativeRegisterContextLinux(native_thread) {
132133
if (target_arch.GetMachine() != llvm::Triple::ppc64le) {
133134
llvm_unreachable("Unhandled target architecture.");
134135
}

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_s390x.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,8 @@ CreateRegisterInfoInterface(const ArchSpec &target_arch) {
110110
NativeRegisterContextLinux_s390x::NativeRegisterContextLinux_s390x(
111111
const ArchSpec &target_arch, NativeThreadProtocol &native_thread)
112112
: NativeRegisterContextRegisterInfo(
113-
native_thread, CreateRegisterInfoInterface(target_arch)) {
113+
native_thread, CreateRegisterInfoInterface(target_arch)),
114+
NativeRegisterContextLinux(native_thread) {
114115
// Set up data about ranges of valid registers.
115116
switch (target_arch.GetMachine()) {
116117
case llvm::Triple::systemz:

lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ NativeRegisterContextNetBSD_x86_64::NativeRegisterContextNetBSD_x86_64(
267267
const ArchSpec &target_arch, NativeThreadProtocol &native_thread)
268268
: NativeRegisterContextRegisterInfo(
269269
native_thread, CreateRegisterInfoInterface(target_arch)),
270-
m_regset_offsets({0}) {
270+
NativeRegisterContextDBReg_x86(native_thread), m_regset_offsets({0}) {
271271
assert(m_gpr.size() == GetRegisterInfoInterface().GetGPRSize());
272272
std::array<uint32_t, MaxRegularRegSet + 1> first_regnos;
273273

0 commit comments

Comments
 (0)