Community
Participate
Working Groups
When stepping to a label in the disassembly view, the label is set to the top of the view. This should not happen if the label is already visible in the visible area of the disassembly view. I am not sure if this is a requirement or not for setting the label to the top of the view. Here is a very simple example: int main() { int a = 1; int b = a; asm("test:"); b = a; asm("jmp test"); return 0; }
It looks like the DisassemblyPart::gotoPosition is causing the line to jump to the top. if (previousPos instanceof LabelPosition) { revealOffset = previousPos.offset; onTop = true; } If I remove the line "onTop = true", then the view doesn't jump to the top when the position is a label. Is this the correct fix?