Skip to content

Commit 6ad545f

Browse files
authored
Disassembly View: don't display invalid memory instructions (#249779)
Debugger disassembly: don't display invalid memory instructions
1 parent 9443279 commit 6ad545f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/vs/workbench/contrib/debug/browser/disassemblyView.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,11 @@ export class DisassemblyView extends EditorPane {
511511
continue;
512512
}
513513

514+
if (address === -1n) {
515+
// Ignore invalid instructions returned by the adapter.
516+
continue;
517+
}
518+
514519
const entry: IDisassembledInstructionEntry = {
515520
allowBreakpoint: true,
516521
isBreakpointSet: false,

0 commit comments

Comments
 (0)