aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal/ui/debugger.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethereal/ui/debugger.go')
-rw-r--r--ethereal/ui/debugger.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ethereal/ui/debugger.go b/ethereal/ui/debugger.go
index 5b1fb50a2..342e3a7d0 100644
--- a/ethereal/ui/debugger.go
+++ b/ethereal/ui/debugger.go
@@ -65,6 +65,12 @@ func (self *DebuggerWindow) SetCode(code string) {
func (self *DebuggerWindow) SetData(data string) {
self.win.Set("dataText", data)
}
+func (self *DebuggerWindow) SetAsm(data string) {
+ dis := ethchain.Disassemble(ethutil.FromHex(data))
+ for _, str := range dis {
+ self.win.Root().Call("setAsm", str)
+ }
+}
func (self *DebuggerWindow) Debug(valueStr, gasStr, gasPriceStr, scriptStr, dataStr string) {
if !self.Db.done {