forked from Imagelibrary/binutils-gdb
* gdbtk.tcl (update_assembly): Force update to make sure that pc
is visible when creating new assembly windows.
This commit is contained in:
@@ -1452,6 +1452,7 @@ proc update_assembly {linespec} {
|
||||
-after .asm.scroll
|
||||
.asm.scroll configure -command "$win yview"
|
||||
set line [pc_to_line $pclist($cfunc) $pc]
|
||||
update
|
||||
$win yview [expr $line - $asm_screen_height / 2]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user