aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_debug.c
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2017-03-27 07:13:37 -0700
committerLukas Larsson <[email protected]>2017-03-28 10:41:13 +0200
commit2079ac0b81d7796d3296d82ed4d11b91f699e139 (patch)
treed71d0fd05e90fe27d6f85e4291e013907a5e53f5 /erts/emulator/beam/beam_debug.c
parent1db00aa35f99b6876e1049b5162b31acc4f541c1 (diff)
downloadotp-2079ac0b81d7796d3296d82ed4d11b91f699e139.tar.gz
otp-2079ac0b81d7796d3296d82ed4d11b91f699e139.tar.bz2
otp-2079ac0b81d7796d3296d82ed4d11b91f699e139.zip
erts: Fix erts_debug:df function info output
The func_info instruction should also be dumped, so that we know which function is which in the dump. This was accidentally removed when introducing the new codeinfo/codemfa api.
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 8326d348af..3f4b0c0c16 100644
--- a/erts/emulator/beam/beam_debug.c
+++ b/erts/emulator/beam/beam_debug.c
@@ -308,7 +308,7 @@ erts_debug_disassemble_1(BIF_ALIST_1)
BIF_RET(am_undef);
}
}
- code_ptr = erts_codemfa_to_code(cmfa);
+ code_ptr = (BeamInstr*)erts_code_to_codeinfo(erts_codemfa_to_code(cmfa));
} else {
goto error;
}