[lldb] [llvm] [lldb][Windows] WoA HW Watchpoint support in LLDB (PR #108072)
Omair Javaid via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 13:38:44 PST 2025
================
@@ -110,8 +110,8 @@ NativeRegisterContextWindows::CreateHostNativeRegisterContextWindows(
NativeRegisterContextWindows_x86_64::NativeRegisterContextWindows_x86_64(
const ArchSpec &target_arch, NativeThreadProtocol &native_thread)
- : NativeRegisterContextWindows(native_thread,
- CreateRegisterInfoInterface(target_arch)) {}
+ : NativeRegisterContextRegisterInfo(
+ native_thread, CreateRegisterInfoInterface(target_arch)) {}
----------------
omjavaid wrote:
Yes. Correct.
NativeRegisterContextWindows_arm64 class now inherits from both NativeRegisterContextWindows and NativeRegisterContextDBReg_arm64 but both of these classes previously inherited from NativeRegisterContextRegisterInfo non-virtually. This caused multiple instances of NativeRegisterContextRegisterInfo in the hierarchy.
I have now changed NativeRegisterContextWindows definition to inherit NativeRegisterContextRegisterInfo virtually
which shifts the responsibility of initializing NativeRegisterContextRegisterInfo to the most derived class.
Thats why this and other similar changes have been made.
https://github.com/llvm/llvm-project/pull/108072
More information about the llvm-commits
mailing list