codelldb icon indicating copy to clipboard operation
codelldb copied to clipboard

Add .asm file breakpoint support.

Open Raduq91 opened this issue 1 year ago • 0 comments

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

Raduq91 avatar Apr 02 '24 13:04 Raduq91