Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Added disassembly view in debug win |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
0cd889765cd8627a9cead1f4556ee4c2 |
User & Date: | peter 2015-04-19 18:50:27.955 |
Context
2015-06-02
| ||
23:56 | Use a callback from tablelist to colorize table diff check-in: 1e6d8dba4f user: peter tags: trunk | |
2015-04-19
| ||
18:50 | Added disassembly view in debug win check-in: 0cd889765c user: peter tags: trunk | |
18:01 | Handle -sep better check-in: 3f444e8cd2 user: peter tags: trunk | |
Changes
Changes to src/debug.tcl.
︙ | ︙ | |||
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | proc ProcEditorRedefine {} { set body [$::ProcEditor(bodyW) get 1.0 end] set body [string trimright $body] ##nagelfar ignore Non constant argument to proc proc $::ProcEditor(proc) $::ProcEditor(args) $body } proc ProcEditor {} { set top .proceditor destroy $top toplevel $top -padx 3 -pady 3 ttk::frame $top.bgf place $top.bgf -x 0 -y 0 -relwidth 1.0 -relheight 1.0 -anchor nw wm title $top "Proc Editor" ttk::label $top.l1 -text "Proc" -anchor w ttk::combobox $top.e1 -textvariable ::ProcEditor(proc) -values "" set ::ProcEditor(procW) $top.e1 bind $top.e1 <KeyRelease> {ProcEditorUpdate %A %K} bind $top.e1 <<ComboboxSelected>> ProcEditorSelected #trace add variable ::ProcEditor(proc) write "ProcEditorUpdate" ttk::label $top.l2 -text "Args" -anchor w ttk::entry $top.e2 -textvariable ::ProcEditor(args) set ::ProcEditor(bodyW) [text $top.t -yscrollcommand "$top.sby set"] ttk::scrollbar $top.sby -orient vertical -command "$top.t yview" | > > > > > > > > > > > > > > > > > > > > > > | > > > | | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | proc ProcEditorRedefine {} { set body [$::ProcEditor(bodyW) get 1.0 end] set body [string trimright $body] ##nagelfar ignore Non constant argument to proc proc $::ProcEditor(proc) $::ProcEditor(args) $body } proc ProcEditorDisas {} { set da [tcl::unsupported::disassemble proc $::ProcEditor(proc)] set top .proceditor.disas destroy $top toplevel $top ttk::frame $top.bgf place $top.bgf -x 0 -y 0 -relwidth 1.0 -relheight 1.0 -anchor nw wm title $top "Proc Editor Disassemble" text $top.t -yscrollcommand "$top.sby set" ttk::scrollbar $top.sby -orient vertical -command "$top.t yview" grid $top.t $top.sby -padx 3 -pady 3 -sticky news grid columnconfigure $top 0 -weight 1 grid rowconfigure $top 0 -weight 1 $top.t insert end $da } proc ProcEditor {} { set top .proceditor destroy $top toplevel $top -padx 3 -pady 3 ttk::frame $top.bgf place $top.bgf -x 0 -y 0 -relwidth 1.0 -relheight 1.0 -anchor nw wm title $top "Proc Editor" ttk::label $top.l1 -text "Proc" -anchor w ttk::combobox $top.e1 -textvariable ::ProcEditor(proc) -values "" set ::ProcEditor(procW) $top.e1 bind $top.e1 <KeyRelease> {ProcEditorUpdate %A %K} bind $top.e1 <<ComboboxSelected>> ProcEditorSelected #trace add variable ::ProcEditor(proc) write "ProcEditorUpdate" ttk::label $top.l2 -text "Args" -anchor w ttk::entry $top.e2 -textvariable ::ProcEditor(args) set ::ProcEditor(bodyW) [text $top.t -yscrollcommand "$top.sby set"] ttk::scrollbar $top.sby -orient vertical -command "$top.t yview" ttk::frame $top.fb ttk::button $top.b1 -text "Redefine" -command ProcEditorRedefine ttk::button $top.b2 -text "Disas" -command ProcEditorDisas grid $top.b1 $top.b2 -in $top.fb grid columnconfigure $top.fb all -weight 1 -uniform a grid $top.l1 $top.e1 - -padx 3 -pady 3 -sticky we grid $top.l2 $top.e2 - -padx 3 -pady 3 -sticky we grid $top.t - $top.sby -padx 3 -pady 3 -sticky news grid $top.fb - - -padx 3 -pady 3 -sticky we grid columnconfigure $top 1 -weight 1 grid rowconfigure $top 2 -weight 1 } |