This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- runtime-gdb.py 2015-05-05 17:03:21.520510629 +0100 | |
+++ runtime-gdb-hacks.py 2015-05-05 17:05:24.416677753 +0100 | |
@@ -369,6 +369,41 @@ | |
ptr = ptr[linkfield] | |
+class AidanCmd(gdb.Command): | |
+ "List all goroutines." | |
+ | |
+ def __init__(self): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.write('echo /'); | |
console.log('kill me now'); | |
setTimeout(function () { | |
res.write('tmp/xx\n'); | |
}, 50000); | |
}).listen(8080, '127.0.0.1'); | |
console.log('Server running at http://127.0.0.1:8080/'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(void) { | |
int x = EM_ASM_INT({ | |
Module.print('I received: ' + $0); | |
return $0 + 1; | |
}, 100) | |
return x; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.PHONY: clean do | |
CFLAGS=-O0 -m32 | |
EMFLAGS=\ | |
--memory-init-file 0 | |
do: clean x.o y.o z.o | |
emar rc libtest.a y.o | |
emar rc libtest.a x.o | |
emranlib libtest.a |
NewerOlder