Skip to content

Commit

Permalink
Migrate debug server usage of special return
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Nov 3, 2021
1 parent 099e185 commit cdb6374
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/debug/debugserver.c
Expand Up @@ -1668,12 +1668,11 @@ static MVMuint64 request_invoke_code(MVMThreadContext *dtc, cmp_ctx_t *ctx, requ
}

/* Set up return handling for after call. */
DebugserverInvocationSpecialReturnData *srd = MVM_calloc(sizeof(DebugserverInvocationSpecialReturnData), 1);
srd->id = argument->id;
MVM_frame_special_return(tc, tc->cur_frame,
DebugserverInvocationSpecialReturnData *srd = MVM_callstack_allocate_special_return(tc,
debugserver_invocation_special_return,
debugserver_invocation_special_unwind,
(void *)srd, NULL);
NULL, sizeof(DebugserverInvocationSpecialReturnData));
srd->id = argument->id;
tc->cur_frame->return_value = &srd->return_target;
tc->cur_frame->return_type = MVM_RETURN_ALLOMORPH;
tc->cur_frame->return_address = *(tc->interp_cur_op);
Expand Down

0 comments on commit cdb6374

Please sign in to comment.