shithub: mc

Download patch

ref: 5cf18de659c44f4287c103dd81298c5f6b7e0951
parent: 0eae465b2ba82f8a0e49c869bddd37b85ec2e5ae
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Mar 19 19:42:17 EDT 2017

Add acid debug file for Myrddin

--- /dev/null
+++ b/support/acid/myr
@@ -1,0 +1,16 @@
+// acid support for Myrddin.
+
+// Myrddin doesn't use the Plan 9 ABI, so we
+// define our own stack function.
+defn myrstk()
+{
+	local b
+	b = *BP;
+	while *b do {
+		line = pcline(*(b + 8));
+		file = pcfile(*(b + 8));
+		func = fmt(*(b + 8), 'a');
+		print(file, ":", line, ":\t", func, "\n");
+		b = *b;
+	}
+}