mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 22:30:13 +00:00
Add back #ifdef __APPLE__ to RegisterContextDarwin_xxx::NumSupportedHardwareWatchpoints
It turns out these class still contained some os-specific functionality, but I did not notice that originally, as it was #ifdef arm(64). This adds back the __APPLE__ condition to these particular functions, unbreaking arm builds on other OSs. llvm-svn: 332710
This commit is contained in:
parent
718a42cfce
commit
90da3ce3a9
@ -1505,7 +1505,7 @@ uint32_t RegisterContextDarwin_arm::ConvertRegisterKindToRegisterNumber(
|
||||
}
|
||||
|
||||
uint32_t RegisterContextDarwin_arm::NumSupportedHardwareBreakpoints() {
|
||||
#if defined(__arm__)
|
||||
#if defined(__APPLE__) && defined(__arm__)
|
||||
// Set the init value to something that will let us know that we need to
|
||||
// autodetect how many breakpoints are supported dynamically...
|
||||
static uint32_t g_num_supported_hw_breakpoints = UINT32_MAX;
|
||||
@ -1637,7 +1637,7 @@ bool RegisterContextDarwin_arm::ClearHardwareBreakpoint(uint32_t hw_index) {
|
||||
}
|
||||
|
||||
uint32_t RegisterContextDarwin_arm::NumSupportedHardwareWatchpoints() {
|
||||
#if defined(__arm__)
|
||||
#if defined(__APPLE__) && defined(__arm__)
|
||||
// Set the init value to something that will let us know that we need to
|
||||
// autodetect how many watchpoints are supported dynamically...
|
||||
static uint32_t g_num_supported_hw_watchpoints = UINT32_MAX;
|
||||
|
@ -915,7 +915,7 @@ uint32_t RegisterContextDarwin_arm64::ConvertRegisterKindToRegisterNumber(
|
||||
}
|
||||
|
||||
uint32_t RegisterContextDarwin_arm64::NumSupportedHardwareWatchpoints() {
|
||||
#if defined(__arm64__) || defined(__aarch64__)
|
||||
#if defined(__APPLE__) && (defined(__arm64__) || defined(__aarch64__))
|
||||
// autodetect how many watchpoints are supported dynamically...
|
||||
static uint32_t g_num_supported_hw_watchpoints = UINT32_MAX;
|
||||
if (g_num_supported_hw_watchpoints == UINT32_MAX) {
|
||||
|
Loading…
Reference in New Issue
Block a user