summaryrefslogtreecommitdiff
path: root/erts/emulator/beam/beam_debug.c
diff options
context:
space:
mode:
authorJohn Högberg <john@erlang.org>2019-09-17 10:16:05 +0200
committerJohn Högberg <john@erlang.org>2019-09-17 11:42:56 +0200
commit65d4f0453532ee007de63118464b9ef8d3439374 (patch)
tree528d42df5e8c9b16a31cd9f5bd7716e3f883a1ac /erts/emulator/beam/beam_debug.c
parent40323104481d0813da9286e786af7f43a336b916 (diff)
downloaderlang-65d4f0453532ee007de63118464b9ef8d3439374.tar.gz
erts: Use hidden exports for BIF trapping
This hides traps when BIFs are traced, making them appear as a single call + return pair.
Diffstat (limited to 'erts/emulator/beam/beam_debug.c')
-rw-r--r--erts/emulator/beam/beam_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_debug.c b/erts/emulator/beam/beam_debug.c
index 6a9a6b7dc9..255ce48306 100644
--- a/erts/emulator/beam/beam_debug.c
+++ b/erts/emulator/beam/beam_debug.c
@@ -158,7 +158,7 @@ erts_debug_breakpoint_2(BIF_ALIST_2)
}
if (!erts_try_seize_code_write_permission(BIF_P)) {
- ERTS_BIF_YIELD2(bif_export[BIF_erts_debug_breakpoint_2],
+ ERTS_BIF_YIELD2(&bif_trap_export[BIF_erts_debug_breakpoint_2],
BIF_P, BIF_ARG_1, BIF_ARG_2);
}
erts_proc_unlock(p, ERTS_PROC_LOCK_MAIN);