Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

debugging tool tweaks

  • Loading branch information...
commit 2833fb1d294ffa18e9c58e8eb2ca1a72670afd87 1 parent c24e2e4
@kripken authored
Showing with 6 additions and 2 deletions.
  1. +4 −0 tools/autodebugger.py
  2. +2 −2 tools/nativize_llvm.py
View
4 tools/autodebugger.py
@@ -20,6 +20,8 @@
@.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 @@
@.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
View
4 tools/nativize_llvm.py
@@ -27,5 +27,5 @@ def path_from_root(*pathelems):
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
Please sign in to comment.
Something went wrong with that request. Please try again.