feat(debugger): Disassembly view and instruction stepping for native debugging (#6694)

Native debug sessions whose adapter supports disassemble get a Disassembly tab showing the selected frame's instructions with the program counter highlighted, following stepping and frame selection, including frames without source. Show Disassembly is on the Frames list; Step Over Instruction and Step Into Instruction send steps with instruction granularity and are disabled with a reason when the adapter lacks it. Frames keep instructionPointerReference; when the PC is not where the requested window expects it, the view reads again from the PC.

lldb-dap sends instruction bytes already spaced and pads mnemonics unevenly; the view strips the spacing before grouping the bytes and pads mnemonics to one width.

Part of #5922

Co-authored-by: bertyhell <[email protected]>
Цей коміт міститься в:
Bert Verhelstтаbertyhell authored and GitHub committed 2026-11-29 15:54:29 +08:00
1 джерело 5fb8f21c60
коміт ad685ea19e
21 files changed
+1407 -16

No files matched your search

+11 -1
Переглянути файл
@@ -4670,5 +4670,15 @@
"Memory is read while the program is paused.": "Memory is read while the program is paused.",
"The memory at {address} cannot be read.": "The memory at {address} cannot be read.",
"Enter an address or an expression, or choose View Memory on a variable.": "Enter an address or an expression, or choose View Memory on a variable.",
"“{expression}” is not an address. Enter a pointer or an address, such as &buffer[0].": "“{expression}” is not an address. Enter a pointer or an address, such as &buffer[0]."
"“{expression}” is not an address. Enter a pointer or an address, such as &buffer[0].": "“{expression}” is not an address. Enter a pointer or an address, such as &buffer[0].",
"Disassembly": "Disassembly",
"Show Disassembly": "Show Disassembly",
"Step Over Instruction": "Step Over Instruction",
"Step Into Instruction": "Step Into Instruction",
"Instruction stepping is not supported by {adapter}": "Instruction stepping is not supported by {adapter}",
"this debugger": "this debugger",
"Instructions are shown while the program is paused.": "Instructions are shown while the program is paused.",
"The debugger gives no instruction address for this frame.": "The debugger gives no instruction address for this frame.",
"Bytes": "Bytes",
"No instructions at this address.": "No instructions at this address."
}
+11 -1
Переглянути файл
@@ -11260,5 +11260,15 @@
"Memory is read while the program is paused.": "程序暂停时才会读取内存。",
"The memory at {address} cannot be read.": "无法读取 {address} 处的内存。",
"Enter an address or an expression, or choose View Memory on a variable.": "输入地址或表达式,或在变量上选择“查看内存”。",
"“{expression}” is not an address. Enter a pointer or an address, such as &buffer[0].": "“{expression}”不是地址。请输入指针或地址,例如 &buffer[0]。"
"“{expression}” is not an address. Enter a pointer or an address, such as &buffer[0].": "“{expression}”不是地址。请输入指针或地址,例如 &buffer[0]。",
"Disassembly": "反汇编",
"Show Disassembly": "显示反汇编",
"Step Over Instruction": "单步跳过指令",
"Step Into Instruction": "单步进入指令",
"Instruction stepping is not supported by {adapter}": "{adapter} 不支持按指令单步执行",
"this debugger": "此调试器",
"Instructions are shown while the program is paused.": "程序暂停时才会显示指令。",
"The debugger gives no instruction address for this frame.": "调试器没有提供此帧的指令地址。",
"Bytes": "字节",
"No instructions at this address.": "此地址没有指令。"
}