diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-24 16:06:11 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-24 16:06:11 -0800 |
commit | 2833fb1d294ffa18e9c58e8eb2ca1a72670afd87 (patch) | |
tree | c3b28eff6119ba2bce72ab37cbd016a54dd63d5b | |
parent | c24e2e41943f1a2968ac686d0d164fb6585d754f (diff) |
debugging tool tweaks
-rw-r--r-- | tools/autodebugger.py | 4 | ||||
-rwxr-xr-x | tools/nativize_llvm.py | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/tools/autodebugger.py b/tools/autodebugger.py index 3631548c..1823320f 100644 --- a/tools/autodebugger.py +++ b/tools/autodebugger.py @@ -20,6 +20,8 @@ POSTAMBLE = ''' @.emscripten.autodebug.str.f = private constant [11 x i8] c"AD:%d,%lf\\0A\\00", align 1 ; [#uses=1] @.emscripten.autodebug.str.64 = private constant [13 x i8] c"AD:%d,%d,%d\\0A\\00", align 1 ; [#uses=1] +declare i32 @printf(i8*, ...) + ; [#uses=1] define void @emscripten_autodebug_i64(i32 %line, i64 %value) { entry: @@ -91,6 +93,8 @@ POSTAMBLE_NEW = ''' @.emscripten.autodebug.str = private constant [10 x i8] c"AD:%d,%d\\0A\\00", align 1 ; [#uses=1] @.emscripten.autodebug.str.f = private constant [11 x i8] c"AD:%d,%lf\\0A\\00", align 1 ; [#uses=1] +declare i32 @printf(i8*, ...) + ; [#uses=1] define void @emscripten_autodebug_i64(i32 %line, i64 %value) { %1 = sitofp i64 %value to double diff --git a/tools/nativize_llvm.py b/tools/nativize_llvm.py index e76b9a4e..1aaba7ac 100755 --- a/tools/nativize_llvm.py +++ b/tools/nativize_llvm.py @@ -27,5 +27,5 @@ Popen([LLVM_COMPILER, filename + '.clean.bc', '-o=' + filename + '.s']).communic print 's => o' Popen(['as', filename + '.s', '-o', filename + '.o']).communicate()[0] print 'o => runnable' -Popen(['g++', path_from_root('system', 'lib', 'debugging.cpp'), filename + '.o', '-o', filename + '.run'] + ['-l' + lib for lib in libs]).communicate()[0] - +Popen(['g++', filename + '.o', '-o', filename + '.run'] + ['-l' + lib for lib in libs]).communicate()[0] +# path_from_root('system', 'lib', 'debugging.cpp') - add this to try to mix it up |