diff options
author | Lukas Larsson <[email protected]> | 2016-10-05 12:16:35 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-10-12 15:39:38 +0200 |
commit | 8e2490086b45b9ce4d51883e594c38e2e17b5b47 (patch) | |
tree | 091b4fcad015cd0eaa8f7c03b03bfcd66f745493 /erts/emulator/beam/erl_process.c | |
parent | 855b3a9be724ffd3c9f7e311cf9d810099fa36ef (diff) | |
download | otp-8e2490086b45b9ce4d51883e594c38e2e17b5b47.tar.gz otp-8e2490086b45b9ce4d51883e594c38e2e17b5b47.tar.bz2 otp-8e2490086b45b9ce4d51883e594c38e2e17b5b47.zip |
erts: Refactor find_function_from_pc to return MFA
Diffstat (limited to 'erts/emulator/beam/erl_process.c')
-rw-r--r-- | erts/emulator/beam/erl_process.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/erl_process.c b/erts/emulator/beam/erl_process.c index f7f391e322..d0a0310544 100644 --- a/erts/emulator/beam/erl_process.c +++ b/erts/emulator/beam/erl_process.c @@ -13220,8 +13220,8 @@ erts_program_counter_info(int to, void *to_arg, Process *p) static void print_function_from_pc(int to, void *to_arg, BeamInstr* x) { - ErtsCodeInfo *ci = find_function_from_pc(x); - if (ci == NULL) { + ErtsCodeMFA *cmfa = find_function_from_pc(x); + if (cmfa == NULL) { if (x == beam_exit) { erts_print(to, to_arg, "<terminate process>"); } else if (x == beam_continue_exit) { @@ -13235,8 +13235,8 @@ print_function_from_pc(int to, void *to_arg, BeamInstr* x) } } else { erts_print(to, to_arg, "%T:%T/%d + %d", - ci->mfa.module, ci->mfa.function, ci->mfa.arity, - (x-(BeamInstr*)ci) * sizeof(Eterm)); + cmfa->module, cmfa->function, cmfa->arity, + (x-(BeamInstr*)cmfa) * sizeof(Eterm)); } } |