Skip to content

Commit c544635

Browse files
committed
Fix advanced tracing
Signed-off-by: Jakub Gonet <jakub.gonet@swmansion.com>
1 parent f556340 commit c544635

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/libAtomVM/module.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ enum ModuleLoadResult
159159
* @param module_atom module name atom string.
160160
* @param function_atom function name atom string.
161161
*/
162-
void module_get_imported_function_module_and_name(const Module *this_module, int index, AtomString *module_atom, AtomString *function_atom);
162+
void module_get_imported_function_module_and_name(const Module *this_module, int index, AtomString *module_atom, AtomString *function_atom, GlobalContext *glb);
163163
#endif
164164

165165
/**

src/libAtomVM/opcodesswitch.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1696,7 +1696,7 @@ static bool maybe_call_native(Context *ctx, AtomString module_name, AtomString f
16961696
if (UNLIKELY(ctx->trace_calls)) {
16971697
AtomString module_name;
16981698
AtomString function_name;
1699-
module_get_imported_function_module_and_name(mod, index, &module_name, &function_name);
1699+
module_get_imported_function_module_and_name(mod, index, &module_name, &function_name, ctx->global);
17001700
trace_apply(ctx, call_type, module_name, function_name, arity);
17011701
}
17021702
}

0 commit comments

Comments
 (0)