Окружение стало сильно удобнее, lldb заработал
This commit is contained in:
17
casm/.vscode/launch.json
vendored
Normal file
17
casm/.vscode/launch.json
vendored
Normal 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
17
casm/CMakePresets.json
Normal 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"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user