> compile NEMU
221220000 张三 Linux zzy 5.15.146.1-microsoft-standard-WSL2 #1 SMP Thu Jan 11 04:09:03 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux 16:44:03 up 1 day, 15:34, 1 user, load average: 0.26, 0.21, 0.20
This commit is contained in:
@ -62,7 +62,7 @@ bool wp_check_hit(void) {
|
||||
}
|
||||
|
||||
static WP* del_wp(WP** head, WP* pos) {
|
||||
for (WP** i = head; (*i) != NULL && (*i)->next != NULL; i = (WP**)*i) {
|
||||
for (WP** i = head; (*i) != NULL; i = (WP**)*i) {
|
||||
if ((**i).NO == pos->NO) {
|
||||
WP* res = *i;
|
||||
*i = (*i)->next;
|
||||
@ -112,6 +112,7 @@ void free_wp(WP *_wp) {
|
||||
WP* wp = del_wp(&head, _wp);
|
||||
if (wp == NULL) {
|
||||
printf("free_wp: no such watchpoint\n");
|
||||
return;
|
||||
}
|
||||
wp->next = free_;
|
||||
free_ = wp;
|
||||
|
Reference in New Issue
Block a user