Commit e23661111510428ac4d7fe48b9567b29183f0c6b
DebugInterface: rename print* to printMem* and copy spectest.print
wanderer authored on 8/5/2016, 7:16:23 PMAlex Beregszaszi committed on 8/6/2016, 3:24:22 AM
Parent: 4d1cb1ad70b607a809129de298594beb4d82ba71
Files changed
debugInterface.js | changed |
debugInterface.js | ||
---|---|---|
@@ -11,13 +11,17 @@ | ||
11 | 11 | } |
12 | 12 | |
13 | 13 | get exportTable () { |
14 | 14 | return { |
15 | - 'print': function (offset, length) { | |
15 | + 'print': function (a) { | |
16 | + console.log(a) | |
17 | + }, | |
18 | + | |
19 | + 'printMem': function (offset, length) { | |
16 | 20 | console.log(`<DEBUG(str): ${this.getMemoryBuffer(offset, length).toString()}>`) |
17 | 21 | }.bind(this), |
18 | 22 | |
19 | - 'printHex': function (offset, length) { | |
23 | + 'printMemHex': function (offset, length) { | |
20 | 24 | console.log(`<DEBUG(hex): ${this.getMemoryBuffer(offset, length).toString('hex')}>`) |
21 | 25 | }.bind(this), |
22 | 26 | |
23 | 27 | 'evmStackTrace': function (sp, op) { |
Built with git-ssb-web