Skip to content

Commit

Permalink
Use right MVMThreadContext in check for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterDuke17 committed Oct 15, 2021
1 parent 61600a3 commit 4e7fa77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/debug/debugserver.c
Expand Up @@ -1007,13 +1007,13 @@ MVMuint8 setup_step(MVMThreadContext *dtc, cmp_ctx_t *ctx, request_data *argumen
MVMThreadContext *tc;

if (!to_do) {
if (tc->instance->debugserver->debugspam_protocol)
if (dtc->instance->debugserver->debugspam_protocol)
fprintf(stderr, "Setting up step failed: no thread found\n");
return 1;
}

if ((to_do->body.tc->gc_status & MVMGCSTATUS_MASK) != MVMGCStatus_UNABLE) {
if (tc->instance->debugserver->debugspam_protocol)
if (dtc->instance->debugserver->debugspam_protocol)
fprintf(stderr, "Setting up step failed: thread has wrong status\n");
return 1;
}
Expand Down

0 comments on commit 4e7fa77

Please sign in to comment.