Skip to content

Commit 765049d

Browse files
authored
Update HardwareBreakpoints.cpp
1 parent 6b11a2e commit 765049d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

plugins/HardwareBreakpoints/HardwareBreakpoints.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ void HardwareBreakpoints::setupBreakpoints() {
165165
thread->getState(&state);
166166

167167
for (int i = 0; i < RegisterCount; ++i) {
168-
if (edb::v1::eval_expression(addresses_[i]->text(), &addr[i])) {
168+
const BreakpointState bp_state = breakpoint_state(&state, i);
169+
if (ok[i] || bp_state.enabled) {
169170
set_breakpoint_state(
170171
&state,
171172
i,

0 commit comments

Comments
 (0)