Переезд на .code-workspace

This commit is contained in:
Пытков Роман
2025-09-20 19:39:56 +03:00
parent 8f705bb7b8
commit 13cbb905ec
8 changed files with 73 additions and 60 deletions

48
.vscode/launch.json vendored
View File

@@ -1,48 +0,0 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "<file>: lldb x64",
"type": "lldb",
"request": "launch",
"program": "${fileDirname}/build/${fileBasenameNoExtension}",
"cwd": "${fileDirname}/build",
"preLaunchTask": "asm64",
},
{
"name": "<file>: cppdbg x64",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/build/${fileBasenameNoExtension}",
"cwd": "${fileDirname}/build",
"preLaunchTask": "asm64",
},
{
"name": "<file>: by-gdb x64",
"type": "by-gdb",
"request": "launch",
"program": "${fileDirname}/build/${fileBasenameNoExtension}",
"cwd": "${fileDirname}/build",
"preLaunchTask": "asm64",
},
{
"name": "<file>: gdb x64",
"type": "gdb",
"request": "launch",
"program": "${fileDirname}/build/${fileBasenameNoExtension}",
"preLaunchTask": "asm64",
},
{
"name": "<file>: lldb+GCC x64",
"type": "lldb",
"request": "launch",
"program": "${fileDirname}/build/${fileBasenameNoExtension}",
"cwd": "${fileDirname}/build",
"preLaunchTask": "asm64+gcc",
}
]
}

View File

@@ -1,5 +0,0 @@
{
"debug.allowBreakpointsEverywhere": true,
"debug.inlineValues": "on",
"cmake.sourceDirectory": "/home/nullptr/Documents/Gitea/NASM/casm"
}

View File

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

View File

Before

Width:  |  Height:  |  Size: 75 KiB

After

Width:  |  Height:  |  Size: 75 KiB

49
minimal/.vscode/launch.json vendored Normal file
View File

@@ -0,0 +1,49 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "lldb x64",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/build/minimal",
"cwd": "${workspaceFolder}/build",
"preLaunchTask": "asm64",
},
{
"name": "cppdbg x64",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/build/minimal",
"cwd": "${workspaceFolder}/build",
"preLaunchTask": "asm64",
},
{
"name": "by-gdb x64",
"type": "by-gdb",
"request": "launch",
"program": "${workspaceFolder}/build/minimal",
"cwd": "${workspaceFolder}/build",
"preLaunchTask": "asm64",
},
{
"name": "gdb x64",
"type": "gdb",
"request": "launch",
"program": "${workspaceFolder}/build/minimal",
"preLaunchTask": "asm64",
},
{
"name": "lldb+GCC x64",
"type": "lldb",
"request": "launch",
"program": "${workspaceFolder}/build/minimal",
"cwd": "${workspaceFolder}/build",
"preLaunchTask": "asm64+gcc",
}
]
}

View File

@@ -5,10 +5,10 @@
"label": "asm64", "label": "asm64",
"type": "shell", "type": "shell",
"command": [ "command": [
"builddir=${fileDirname}/build;", "builddir=${workspaceFolder}/build;",
"mkdir -p $builddir;", "mkdir -p $builddir;",
"rawfilename=$builddir/${fileBasenameNoExtension};", "rawfilename=$builddir/minimal;",
"nasm -gdwarf -f elf64 -o $rawfilename.o ${file};", "nasm -gdwarf -f elf64 -o $rawfilename.o ${workspaceFolder}/minimal.asm;",
"ld -g -m elf_x86_64 -o $rawfilename $rawfilename.o;" "ld -g -m elf_x86_64 -o $rawfilename $rawfilename.o;"
], ],
"problemMatcher": { "problemMatcher": {
@@ -31,10 +31,10 @@
"label": "asm64+gcc", "label": "asm64+gcc",
"type": "shell", "type": "shell",
"command": [ "command": [
"builddir=${fileDirname}/build;", "builddir=${workspaceFolder}/build;",
"mkdir -p $builddir;", "mkdir -p $builddir;",
"rawfilename=$builddir/${fileBasenameNoExtension};", "rawfilename=$builddir/minimal;",
"nasm -gdwarf -f elf64 -o $rawfilename.o ${file};", "nasm -gdwarf -f elf64 -o $rawfilename.o ${workspaceFolder}/minimal.asm;",
"gcc -o $rawfilename $rawfilename.o;" "gcc -o $rawfilename $rawfilename.o;"
], ],
"problemMatcher": { "problemMatcher": {

17
nasm.code-workspace Normal file
View File

@@ -0,0 +1,17 @@
{
"folders": [
{
"path": "casm"
},
{
"path": "minimal"
},
{
"path": "docs"
}
],
"settings": {
"debug.allowBreakpointsEverywhere": true,
"debug.inlineValues": "on",
}
}