Also report back the number of bytes each register can watch.
This commit is contained in:
@@ -114,6 +114,7 @@ public:
|
|||||||
|
|
||||||
virtual status_t GetWatchpointDebugCapabilities(
|
virtual status_t GetWatchpointDebugCapabilities(
|
||||||
int32& _maxRegisterCount,
|
int32& _maxRegisterCount,
|
||||||
|
int32& _maxBytesPerRegister,
|
||||||
uint8& _watchpointCapabilityFlags) = 0;
|
uint8& _watchpointCapabilityFlags) = 0;
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -613,12 +613,13 @@ ArchitectureX86::GetInstructionInfo(target_addr_t address,
|
|||||||
|
|
||||||
status_t
|
status_t
|
||||||
ArchitectureX86::GetWatchpointDebugCapabilities(int32& _maxRegisterCount,
|
ArchitectureX86::GetWatchpointDebugCapabilities(int32& _maxRegisterCount,
|
||||||
uint8& _watchpointCapabilityFlags)
|
int32& _maxBytesPerRegister, uint8& _watchpointCapabilityFlags)
|
||||||
{
|
{
|
||||||
// while x86 technically has 4 hardware debug registers, one is reserved by
|
// while x86 technically has 4 hardware debug registers, one is reserved by
|
||||||
// the kernel, and one is required for breakpoint support, which leaves
|
// the kernel, and one is required for breakpoint support, which leaves
|
||||||
// two available for watchpoints.
|
// two available for watchpoints.
|
||||||
_maxRegisterCount = 2;
|
_maxRegisterCount = 2;
|
||||||
|
_maxBytesPerRegister = 4;
|
||||||
|
|
||||||
// x86 only supports write and read/write watchpoints.
|
// x86 only supports write and read/write watchpoints.
|
||||||
_watchpointCapabilityFlags = WATCHPOINT_CAPABILITY_FLAG_WRITE
|
_watchpointCapabilityFlags = WATCHPOINT_CAPABILITY_FLAG_WRITE
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ public:
|
|||||||
|
|
||||||
virtual status_t GetWatchpointDebugCapabilities(
|
virtual status_t GetWatchpointDebugCapabilities(
|
||||||
int32& _maxRegisterCount,
|
int32& _maxRegisterCount,
|
||||||
|
int32& _maxBytesPerRegister,
|
||||||
uint8& _watchpointCapabilityFlags);
|
uint8& _watchpointCapabilityFlags);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user