Skip to content

Disassembly View: don't display invalid memory instructions#249779

Merged
connor4312 merged 1 commit into
microsoft:mainfrom
eronnen:disassembly-filter-out-invalid-memory-instructions
May 28, 2025
Merged

Disassembly View: don't display invalid memory instructions#249779
connor4312 merged 1 commit into
microsoft:mainfrom
eronnen:disassembly-filter-out-invalid-memory-instructions

Conversation

@eronnen

@eronnen eronnen commented May 26, 2025

Copy link
Copy Markdown
Contributor

Ignore instructions returned by the debug adapter that have invalid memory (-1).

This can happen when VSCode tries to disassemble unmapped memory, for example, when scrolling past a module address range.

Fix #249782

@eronnen eronnen changed the title Debugger disassembly: don't display invalid memory instructions May 26, 2025
@eronnen eronnen changed the title Disassembly View: don't display invalid memory instructions May 26, 2025
@eronnen eronnen changed the title Disassembly View: don't display invalid memory instructions (Fixes #249782) May 26, 2025
@Yoyokrazy Yoyokrazy assigned connor4312 and unassigned Yoyokrazy May 28, 2025
@connor4312 connor4312 enabled auto-merge (squash) May 28, 2025 16:39
@vs-code-engineering vs-code-engineering Bot added this to the May 2025 milestone May 28, 2025
@connor4312 connor4312 merged commit 6ad545f into microsoft:main May 28, 2025
7 checks passed
@Schpoone

Copy link
Copy Markdown
Contributor

Should VSCode also ignore instructions that are explicitly marked "invalid" in the presentation hint returned by the debug adapter?
See https://microsoft.github.io/debug-adapter-protocol/specification#Types_DisassembledInstruction

@vs-code-engineering vs-code-engineering Bot locked and limited conversation to collaborators Jul 12, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

5 participants