You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During the debug session, when user navigates and opens the Disassembly View in the VSCode, the Disassembly View focuses on an incorrect line when it is compared program counter (pc) register as shown above:
After a review, I found that the current implementation of the disassembleRequest method at the GDBDebugSessionBase class are not handling the instructionOffset parameters. It seems the disassembleRequest implementation requires to be updated to match the DAP reference. https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Disassemble
@jonahgraham and I already discussed the issue previously, planning to propose an update to solve the issue.
The text was updated successfully, but these errors were encountered:
This is an update for the disassembleRequest logic in the debug
adapter. This implementation is covering the scenarios discussed
at the #340 .
Notes:
- The previous implementation was covering a scenario for the
endMemoryReference argument. I couldn't find the argument in
the DAP specifications. Since this argument doesn't exists on
the current DAP protocol and only existed for the now deleted
Eclipse CDT front end, this field support has been removed.
- The main thing this code changes is handling negative offsets
from the memory reference, something the original code did not
do and wasn't used by vscode when the original code was written.
During the debug session, when user navigates and opens the
Disassembly View
in the VSCode, the Disassembly View focuses on an incorrect line when it is compared program counter (pc) register as shown above:After a review, I found that the current implementation of the
disassembleRequest
method at theGDBDebugSessionBase
class are not handling theinstructionOffset
parameters. It seems thedisassembleRequest
implementation requires to be updated to match the DAP reference.https://microsoft.github.io/debug-adapter-protocol/specification#Requests_Disassemble
@jonahgraham and I already discussed the issue previously, planning to propose an update to solve the issue.
The text was updated successfully, but these errors were encountered: