vadimcn / codelldb

A native debugger extension for VSCode based on LLDB
https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb
MIT License
2.42k stars 237 forks source link

Add .asm file breakpoint support. #1089

Open Raduq91 opened 3 months ago

Raduq91 commented 3 months ago

VScodium, windows 10 x64, clang. It goes correctly and successfully into asm file when 'stepping into' from main function, steps correctly and returns correctly back into main function but I can't set breakpoints in the asm file.

in main.cpp I added external asm(yasm) function "int my_asmz(int);"

in main function added: int x = 50; int y = my_asmz(x); printf("%d", y);

asm file:

DEFAULT REL
section .data
section .text

global my_asmz

my_asmz:
    mov eax, ecx
    add eax, 6
    ret