mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 09:08:59 +00:00
* gdbtk.c (running_now): New global variable.
(gdb_cmd): Test it before executing any command. (gdbtk_call_command): Set it when inferior is running. * gdbtk.tcl (gdbtk_tcl_busy, gdbtk_tcl_idle): Enable and disable interaction with command window's text appropriately.
This commit is contained in:
@@ -668,6 +668,9 @@ proc delete_breakpoint_tag {win line} {
|
||||
}
|
||||
|
||||
proc gdbtk_tcl_busy {} {
|
||||
if {[winfo exists .cmd]} {
|
||||
.cmd.text configure -state disabled
|
||||
}
|
||||
if {[winfo exists .src]} {
|
||||
.src.start configure -state disabled
|
||||
.src.stop configure -state normal
|
||||
@@ -692,6 +695,9 @@ proc gdbtk_tcl_busy {} {
|
||||
}
|
||||
|
||||
proc gdbtk_tcl_idle {} {
|
||||
if {[winfo exists .cmd]} {
|
||||
.cmd.text configure -state normal
|
||||
}
|
||||
if {[winfo exists .src]} {
|
||||
.src.start configure -state normal
|
||||
.src.stop configure -state disabled
|
||||
@@ -703,7 +709,6 @@ proc gdbtk_tcl_idle {} {
|
||||
.src.down configure -state normal
|
||||
.src.bottom configure -state normal
|
||||
}
|
||||
|
||||
if {[winfo exists .asm]} {
|
||||
.asm.stepi configure -state normal
|
||||
.asm.nexti configure -state normal
|
||||
|
||||
Reference in New Issue
Block a user