Skip to content

Using Offset instead of address from disassembly#129760

Closed
yuehuang010 wants to merge 2 commits intomicrosoft:mainfrom
xisui-MSFT:dev/xisui/disassembly
Closed

Using Offset instead of address from disassembly#129760
yuehuang010 wants to merge 2 commits intomicrosoft:mainfrom
xisui-MSFT:dev/xisui/disassembly

Conversation

@yuehuang010
Copy link
Contributor

@yuehuang010 yuehuang010 commented Jul 29, 2021

Refactor to use offset and a constant memoryReference from stackFrame. #129655
Fix an issue when scrolling too fast by using a "lock".
RemoveAllBreakPoint will also remove InstructionBP. #129572

This PR fixes #129572 #129655

@isidorn @weinand

Fix an issue when scrolling too fast.
RemoveAllBreakPoint will also remove InstructionBP.
@yuehuang010 yuehuang010 force-pushed the dev/xisui/disassembly branch from 47672cf to 1266242 Compare July 29, 2021 08:56
@isidorn
Copy link
Collaborator

isidorn commented Jul 29, 2021

This looks good, however changing offsets are imho always a bit risky, so I would prefer to merge this in start of next week.
Thus assigning to August.
If you would really like this to ship as part of the July release please let me know.

@isidorn isidorn self-assigned this Jul 29, 2021
@isidorn isidorn added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jul 29, 2021
@isidorn isidorn added this to the August 2021 milestone Jul 29, 2021
@yuehuang010
Copy link
Contributor Author

yuehuang010 commented Jul 29, 2021

@isidorn Sounds reasonable.

@xisui-MSFT
Copy link
Contributor

xisui-MSFT commented Jul 29, 2021

I think you need to update currentAddress on stack frame changes? I would suggest not to cache and update current address in the reset function, and instead, change the ResetInstructionAddress function to only reset the offsets (function name starts with lower case, btw). This guarantees disassemblyView.currentInstructionAddress always has the current instruction address, and so would make #129721 easier.

@yuehuang010
Copy link
Contributor Author

Abandon for now.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

debug Debug viewlet, configurations, breakpoints, adapter issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

"Remove all breakpoints" does not remove instruction breakpoints

3 participants