misc things: vscode configs and test data

This commit is contained in:
Miguel M 2023-04-21 19:39:46 +01:00
parent 709bc6f8c0
commit 28058cdac3
4 changed files with 47 additions and 1 deletions

33
.vscode/launch.json vendored Normal file
View File

@ -0,0 +1,33 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/main.exe",
"args": ["<", "${workspaceFolder}/data/test_mat.txt"],
"stopAtEntry": true,
"cwd": "${fileDirname}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"preLaunchTask": "compile",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
},
{
"description": "Set Disassembly Flavor to Intel",
"text": "-gdb-set disassembly-flavor intel",
"ignoreFailures": true
},
]
}
]
}

3
.vscode/piped_run.sh vendored Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
path=$(realpath “${BASH_SOURCE:-$0})
cat "$path/../data/test_mat.txt" | "$path/../main.exe"

10
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,10 @@
{
"version": "2.0.0",
"tasks": [
{
"label": "compile",
"command": "python make.py compile",
"type": "shell"
}
]
}

View File

@ -1,4 +1,4 @@
3
1 1 -1
555 0.9 +2
555 0.9 2
-55 2 1555