> compile NEMU
ysyx_22040000 李心杨 Linux calcite 6.1.75 #1-NixOS SMP PREEMPT_DYNAMIC Thu Jan 25 23:27:52 UTC 2024 x86_64 GNU/Linux 19:25:40 up 1 day 5:01, 2 users, load average: 1.09, 0.92, 0.80
This commit is contained in:
parent
53baebe06d
commit
0531eb060a
2 changed files with 7 additions and 4 deletions
|
@ -136,12 +136,15 @@ static bool wp_check_change(WP* wp) {
|
|||
/*
|
||||
Check if watchpoint value changed after execution
|
||||
*/
|
||||
void wp_eval_all() {
|
||||
bool wp_eval_all() {
|
||||
WP *wp;
|
||||
bool value_change = false;
|
||||
for (wp = head; wp != NULL; wp = wp->next) {
|
||||
int prev_val = wp->val;
|
||||
if (wp_check_change(wp)) {
|
||||
printf("Watchpoint %d: %s\n %u -> %u\n", wp->NO, wp->expr, prev_val, wp->val);
|
||||
value_change = true;
|
||||
}
|
||||
}
|
||||
return value_change;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue