Also report back the number of bytes each register can watch.

This commit is contained in:
Rene Gollent
2012-11-12 20:22:15 -05:00
parent 5f78788af9
commit 6be4555f92
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -114,6 +114,7 @@ public:
virtual status_t GetWatchpointDebugCapabilities(
int32& _maxRegisterCount,
int32& _maxBytesPerRegister,
uint8& _watchpointCapabilityFlags) = 0;
@@ -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
@@ -63,6 +63,7 @@ public:
virtual status_t GetWatchpointDebugCapabilities(
int32& _maxRegisterCount,
int32& _maxBytesPerRegister,
uint8& _watchpointCapabilityFlags);
private: