diff --git a/src/apps/debugger/arch/Architecture.h b/src/apps/debugger/arch/Architecture.h index 8d7ed43c60..998d3be7f4 100644 --- a/src/apps/debugger/arch/Architecture.h +++ b/src/apps/debugger/arch/Architecture.h @@ -114,6 +114,7 @@ public: virtual status_t GetWatchpointDebugCapabilities( int32& _maxRegisterCount, + int32& _maxBytesPerRegister, uint8& _watchpointCapabilityFlags) = 0; diff --git a/src/apps/debugger/arch/x86/ArchitectureX86.cpp b/src/apps/debugger/arch/x86/ArchitectureX86.cpp index 54472477a7..bc2e075684 100644 --- a/src/apps/debugger/arch/x86/ArchitectureX86.cpp +++ b/src/apps/debugger/arch/x86/ArchitectureX86.cpp @@ -613,12 +613,13 @@ ArchitectureX86::GetInstructionInfo(target_addr_t address, status_t ArchitectureX86::GetWatchpointDebugCapabilities(int32& _maxRegisterCount, - uint8& _watchpointCapabilityFlags) + int32& _maxBytesPerRegister, uint8& _watchpointCapabilityFlags) { // while x86 technically has 4 hardware debug registers, one is reserved by // the kernel, and one is required for breakpoint support, which leaves // two available for watchpoints. _maxRegisterCount = 2; + _maxBytesPerRegister = 4; // x86 only supports write and read/write watchpoints. _watchpointCapabilityFlags = WATCHPOINT_CAPABILITY_FLAG_WRITE diff --git a/src/apps/debugger/arch/x86/ArchitectureX86.h b/src/apps/debugger/arch/x86/ArchitectureX86.h index b58be05f75..48e849c502 100644 --- a/src/apps/debugger/arch/x86/ArchitectureX86.h +++ b/src/apps/debugger/arch/x86/ArchitectureX86.h @@ -63,6 +63,7 @@ public: virtual status_t GetWatchpointDebugCapabilities( int32& _maxRegisterCount, + int32& _maxBytesPerRegister, uint8& _watchpointCapabilityFlags); private: