Окружение стало сильно удобнее, lldb заработал

This commit is contained in:
Пытков Роман
2025-09-20 20:17:31 +03:00
parent 13cbb905ec
commit 98877d6100
4 changed files with 41 additions and 1 deletions

17
casm/.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,17 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch",
"type": "lldb",
"request": "launch",
// Resolved by CMake Tools:
"program": "${command:cmake.launchTargetPath}",
"args": [],
"cwd": "${workspaceFolder}",
"env": {
"PATH": "${env:PATH}:${command:cmake.getLaunchTargetDirectory}"
}
}
]
}

17
casm/CMakePresets.json Normal file
View File

@@ -0,0 +1,17 @@
{
"version": 8,
"configurePresets": [
{
"name": "debug-gcc",
"displayName": "debug-gcc",
"description": "Using compilers: C = /usr/bin/gcc, CXX = /usr/bin/g++",
"binaryDir": "${sourceDir}/out/build/${presetName}",
"cacheVariables": {
"CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}",
"CMAKE_C_COMPILER": "/usr/bin/gcc",
"CMAKE_CXX_COMPILER": "/usr/bin/g++",
"CMAKE_BUILD_TYPE": "Debug"
}
}
]
}

View File

@@ -2,6 +2,6 @@ global main
section .text section .text
main: main:
mov rdi, 5 mov rdi, 125
mov rax, 60 mov rax, 60
syscall syscall

View File

@@ -1,3 +1,9 @@
#include <stdio.h>
int sum(int a, int b) { int sum(int a, int b) {
return a+b; return a+b;
}
void print(int num) {
printf("%d", num);
} }