LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File 1172-Support-dumping-of-external-fun-literals-to-a-crash-.patch of Package erlang (Project home:Ledest:erlang:20)

From bcd8790fdf9549f014c35982732dbcd1270fbe9e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Thu, 5 Apr 2018 15:43:58 +0200
Subject: [PATCH] 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.
---
 erts/emulator/beam/erl_process_dump.c | 3 +++
 1 file changed, 3 insertions(+)

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) {
-- 
2.16.3