summaryrefslogtreecommitdiff
path: root/support/acid/myr
blob: daaea0659850f04616d7ba006442b1baa53b9251 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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;
	}
}