aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2018-04-05 15:43:58 +0200
committerBjörn Gustavsson <[email protected]>2018-04-05 15:47:21 +0200
commitbcd8790fdf9549f014c35982732dbcd1270fbe9e (patch)
tree62b8d31b4bbdd9b3832c3118cc97de91e9bc3f61
parent1328163db6d64d4a8309306cd4caeb43ffd5ecbb (diff)
downloadotp-bcd8790fdf9549f014c35982732dbcd1270fbe9e.tar.gz
otp-bcd8790fdf9549f014c35982732dbcd1270fbe9e.tar.bz2
otp-bcd8790fdf9549f014c35982732dbcd1270fbe9e.zip
Support dumping of external fun literals to a crash dump
63e1c58d27ab (PR #1725) started to compile external funs as literals. This commit updates the dumping of literal areas to dump external fun literals to the crash dump.
-rw-r--r--erts/emulator/beam/erl_process_dump.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/erl_process_dump.c b/erts/emulator/beam/erl_process_dump.c
index 00659f9f49..5db276ec7f 100644
--- a/erts/emulator/beam/erl_process_dump.c
+++ b/erts/emulator/beam/erl_process_dump.c
@@ -942,6 +942,9 @@ dump_module_literals(fmtfn_t to, void *to_arg, ErtsLiteralArea* lit_area)
}
erts_putc(to, to_arg, '\n');
}
+ } else if (is_export_header(w)) {
+ dump_externally(to, to_arg, term);
+ erts_putc(to, to_arg, '\n');
}
size = 1 + header_arity(w);
switch (w & _HEADER_SUBTAG_MASK) {