mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/bp_wp_in_panic_v5.1' into 'release/v5.1'
fix(breakpoint): fix bp/wp logic when debugger is connected (v5.1) See merge request espressif/esp-idf!25633
This commit is contained in:
commit
e10e95282d
@ -310,8 +310,9 @@ esp_err_t esp_cpu_set_breakpoint(int bp_num, const void *bp_addr)
|
||||
if (ret == 0) {
|
||||
return ESP_ERR_INVALID_RESPONSE;
|
||||
}
|
||||
}
|
||||
rv_utils_set_breakpoint(bp_num, (uint32_t)bp_addr);
|
||||
} else {
|
||||
rv_utils_set_breakpoint(bp_num, (uint32_t)bp_addr);
|
||||
}
|
||||
#endif // __XTENSA__
|
||||
return ESP_OK;
|
||||
}
|
||||
@ -332,8 +333,9 @@ esp_err_t esp_cpu_clear_breakpoint(int bp_num)
|
||||
if (ret == 0) {
|
||||
return ESP_ERR_INVALID_RESPONSE;
|
||||
}
|
||||
}
|
||||
rv_utils_clear_breakpoint(bp_num);
|
||||
} else {
|
||||
rv_utils_clear_breakpoint(bp_num);
|
||||
}
|
||||
#endif // __XTENSA__
|
||||
return ESP_OK;
|
||||
}
|
||||
@ -365,8 +367,9 @@ esp_err_t esp_cpu_set_watchpoint(int wp_num, const void *wp_addr, size_t size, e
|
||||
if (ret == 0) {
|
||||
return ESP_ERR_INVALID_RESPONSE;
|
||||
}
|
||||
}
|
||||
rv_utils_set_watchpoint(wp_num, (uint32_t)wp_addr, size, on_read, on_write);
|
||||
} else {
|
||||
rv_utils_set_watchpoint(wp_num, (uint32_t)wp_addr, size, on_read, on_write);
|
||||
}
|
||||
#endif // __XTENSA__
|
||||
return ESP_OK;
|
||||
}
|
||||
@ -387,8 +390,9 @@ esp_err_t esp_cpu_clear_watchpoint(int wp_num)
|
||||
if (ret == 0) {
|
||||
return ESP_ERR_INVALID_RESPONSE;
|
||||
}
|
||||
}
|
||||
rv_utils_clear_watchpoint(wp_num);
|
||||
} else {
|
||||
rv_utils_clear_watchpoint(wp_num);
|
||||
}
|
||||
#endif // __XTENSA__
|
||||
return ESP_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user