diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..e778d0f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // Usare IntelliSense per informazioni sui possibili attributi. + // Al passaggio del mouse vengono visualizzate le descrizioni degli attributi esistenti. + // Per altre informazioni, visitare: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "SYS161", + "type": "gdb", + "request": "launch", + "cwd": "/home/pds/pds-os161/root", + "gdbpath": "/home/pds/os161/tools/bin/mips-harvard-os161-gdb", + "target": "kernel", + "preLaunchTask": "bootSys161" + } + ] +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..60e0c17 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,76 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "bootSys161", + "type": "shell", + "command": "/home/pds/os161/tools/bin/sys161", + "isBackground": true, + "args": ["-w", "kernel"], + "options": { + "cwd": "/home/pds/pds-os161/root" + }, + "problemMatcher": [ + { + "pattern": [ + { + "regexp": ".", + "file": 1, + "location": 2, + "message": 3 + } + ], + "background": { + "activeOnStart": true, + "beginsPattern": ".", + "endsPattern": ".", + } + } + ] + }, + { + "label": "Copy Config", + "type": "shell", + "command": "cd ~/os161/os161-base-2.0.2/kern; cp conf/DUMBVM conf/${input:VersionName}", + "problemMatcher": [] + }, + { + "label": "Run Config", + "type": "shell", + "command": "cd ~/os161/os161-base-2.0.2/kern/conf;./config ${input:VersionName}", + "problemMatcher": [] + }, + { + "label": "Make Depend", + "type": "shell", + "command": "cd ~/os161/os161-base-2.0.2/kern/compile/${input:VersionName};bmake depend", + "problemMatcher": [] + }, + { + "label": "Build and Install", + "type": "shell", + "command": "cd ~/os161/os161-base-2.0.2/kern/compile/${input:VersionName};bmake;bmake install", + "problemMatcher": [], + "group": { + "kind": "build", + "isDefault": true + } + }, + { + "label": "Run OS161", + "type": "shell", + "command": "cd ~/pds-os161/root;sys161 kernel", + "problemMatcher": [] + } + ], + "inputs": [ + { + "type": "promptString", + "id": "VersionName", + "description": "Nome della versione", + "default": "DUMBVM" + } +] +} \ No newline at end of file