Skip to content

[Bug 575916] Disassembly doesn't update even when the instructions are changed

Bugzilla Link 575916
Status NEW
Importance P3 normal
Reported Sep 10, 2021 10:44 EDT
Modified Oct 04, 2021 12:48 EDT
See also Gerrit change 185738, Git commit 3eee8e67
Reporter Deep Amin

Description

Disassembly view updates the data only when the range of instruction changes, this leads to a problem when the instructions are available after one step or setting breakpoint on next instruction and resuming until it.

Example steps to reproduce:

  1. Make sure there is some error or instructions are not available for the current range (e.g. 1-20)
  2. Add a breakpoint on next instruction (e.g. 2nd if pc was on 1, make sure the 2nd instruction gets executed without any jumps)
  3. When the breakpoint gets hit on 2nd instruction the Disassembly view still shows error, refreshing the view fetches the disassembly correctly

One of the solution I could think of was: The current TCF implementation delegates the call to DisassemblyPart for resume/suspend events, we need a mechanism to know if there was an error in the range of instructions shown in view and then with run control events the view refresh should be forced if there was an error.