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
Describe the bug
The disassembly window has very weird behavior. When scrolling up, an error occurs about not being able to load the region.
When closing and reopening and moving the disassembly window to another VSCode grid-pane, this region behaves fine, but the next memory region above that one creates an error of the same kind.
This is one of the errors:
Unable to disassemble: Error: Could not find an instruction at the baseAddress. Something is not right. Please report this problem:
{
"command":"disassemble",
"arguments":
{
"memoryReference":"0x080030c0",
"offset":0,
"instructionOffset":-300,
"instructionCount":50,
"resolveSymbols":true
},
"type":"request",
"seq":22
}
The disassembly seems to be correct, after it could be loaded, so it seems to be related to some sort of check preventing the disassembly to be sent to the VSCode frontend. But this is only a guess, I dont really know enough about how this works under the hood.
Since the error is created at src/backend/disasm.ts:732 I would assume that the list of all instructions all.instructions somehow does not contain the correct list of instructions or is missing some instructions.
To Reproduce
Steps to reproduce the behavior:
Start debug session
Open the disassembly view
Move the disassembly view to another VSCode grid-pane (eg. to view side-by-side or on another VSCode window monitor)
Scroll up in the disassembly view
See issue (eg. at instructionOffset -250)
Close the disassembly view
Open the disassembly view
Move the disassembly view to another VSCode grid-pane (eg. to view side-by-side or on another VSCode window monitor)
Scroll up in the disassembly view
See issue again (eg. now at instructionOffset -300)
Note: For some reason, I need to move the disassembly view to another grid-pane to have it load new lines past the ones queried in the initial query. If I dont move the disassembly view, I can only view the initial 400 instructions(-200 to +200). This is probably another bug worth looking into, but for the time being i can ignore it. I can still file another issue after we resolved this one.
Expected behavior
Expected would be to just scroll up and get the correct disassembly loaded on demand, without error. After getting the error for a section of 50 instructions, this error is not reappearing until the debug session is exited.
But reloading the disassembly view for every 50 assembly instructions is too tedious to be useful.
Screenshots
Environment (please complete the following information):
[comment]: <> Whenever possible, please make sure you are using the latest versions of VSCode and our extension
Cortex-Debug Version (this extension) [v1.12.1]
OS: [Windows 10]
EBlink version 5.12-[178] by Gerard Zagema [a modified GDB as far as i know]
I think vscode is the better debug level here. If not, tell me, I can also supply it with level raw. log_disassembly.txt
Additional context
Only occurs when scrolling up, scrolling down is fine, even data sections become viewable.
Also, the disassembly seems fine once it is correctly loaded, and since its linked to closing and reopening the window, i think it rather stems from this extension. I really, really doubt my custom configuration with EBLink is creating those issues.
The text was updated successfully, but these errors were encountered:
Describe the bug
The disassembly window has very weird behavior. When scrolling up, an error occurs about not being able to load the region.
When closing and reopening and moving the disassembly window to another VSCode grid-pane, this region behaves fine, but the next memory region above that one creates an error of the same kind.
This is one of the errors:
The disassembly seems to be correct, after it could be loaded, so it seems to be related to some sort of check preventing the disassembly to be sent to the VSCode frontend. But this is only a guess, I dont really know enough about how this works under the hood.
Since the error is created at src/backend/disasm.ts:732 I would assume that the list of all instructions
all.instructions
somehow does not contain the correct list of instructions or is missing some instructions.To Reproduce
Steps to reproduce the behavior:
Note:
For some reason, I need to move the disassembly view to another grid-pane to have it load new lines past the ones queried in the initial query. If I dont move the disassembly view, I can only view the initial 400 instructions(-200 to +200). This is probably another bug worth looking into, but for the time being i can ignore it. I can still file another issue after we resolved this one.
Expected behavior
Expected would be to just scroll up and get the correct disassembly loaded on demand, without error. After getting the error for a section of 50 instructions, this error is not reappearing until the debug session is exited.
But reloading the disassembly view for every 50 assembly instructions is too tedious to be useful.
Screenshots
Environment (please complete the following information):
[comment]: <> Whenever possible, please make sure you are using the latest versions of VSCode and our extension
Please include
launch.json
Note: We are unlikely to look at the issue if you do not supply this
start_eblink
task from tasks.jsonAttach text from
Debug Console
I think vscode is the better debug level here. If not, tell me, I can also supply it with level raw.
log_disassembly.txt
Additional context
Only occurs when scrolling up, scrolling down is fine, even data sections become viewable.
Also, the disassembly seems fine once it is correctly loaded, and since its linked to closing and reopening the window, i think it rather stems from this extension. I really, really doubt my custom configuration with EBLink is creating those issues.
The text was updated successfully, but these errors were encountered: