Skip to content
Snippets Groups Projects
Commit b91a2ca0 authored by RP's avatar RP
Browse files

VSCode configuration

parent 2fc3f495
Loading
{
"recommendations": [
"webfreak.debug"
]
}
\ No newline at end of file
{
// 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": [
{
"type": "gdb",
"request": "attach",
"name": "Attach to Sextant",
"executable": "${workspaceFolder}/build/boot/sextant.elf",
"target": "localhost:1234",
"remote": true,
"cwd": "${workspaceRoot}",
"valuesFormatting": "parseText",
"windows": {
"gdbpath": "C:/sextant/ccompil/gdb7.exe",
"autorun": [
]
},
"showDevDebugOutput": true,
"printCalls": true
},
]
}
\ No newline at end of file
......@@ -9,15 +9,48 @@
"command": "ls -l"
},
{
"label": "Download and install the windows dependencies (Windows10)",
"type": "shell",
"windows": {
"command": [
"if (Test-Path -Path 'C:\\sextant') {rmdir -r C:\\sextant};",
"if (Test-Path -Path 'C:\\extract_sextant') {rmdir -r C:\\extract_sextant};",
"Invoke-WebRequest http://www.menaud.fr/Cours/Systeme/Subjects/Codes/PS1/sextant_Win10_64.zip -O sextant_Win10_64.zip;",
"Expand-Archive -Force sextant_Win10_64.zip C:\\extract_sextant;",
"mv C:\\extract_sextant\\sextant C:\\sextant;",
"rmdir -r C:\\extract_sextant;",
"rm sextant_Win10_64.zip;"
],
"options": {
"env": {
"PATH": "C:\\sextant\\ccompil"
}
}
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Build Sextant",
"type": "shell",
"windows": {
"command": "C:\\Program Files\\nodejs\\node.exe"
"command": "make",
"options": {
"env": {
"PATH": "C:\\sextant\\ccompil"
}
}
},
"linux": {
"command": "make"
},
"osx": {
"command": "make"
},
"group": {
"kind": "build",
"isDefault": true
......@@ -28,12 +61,46 @@
"label": "Run Sextant",
"type": "shell",
"windows": {
"command": "C:\\Program Files\\nodejs\\node.exe"
"command": "cd build/boot; c:\\sextant\\qemu\\qemu.exe -L \"c:\\sextant\\qemu\" -net nic,model=ne2k_isa -net user -tftp ./ -cdrom grub.iso",
"options": {
"env": {
"PATH": "C:\\sextant\\ccompil"
}
}
},
"linux": {
"comments": "To quit Alt + 2 > quit",
"command": "cd build/boot; qemu-system-x86_64 -net nic,model=ne2k_isa -net user,tftp=./ -cdrom grub.iso"
},
"osx": {
"comments": "To quit Alt + 2 > quit",
"command": "cd build/boot; qemu-system-x86_64 -net nic,model=ne2k_isa -net user,tftp=./ -cdrom grub.iso"
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": []
},
{
"label": "Debug Sextant",
"type": "shell",
"windows": {
"command": "cd build/boot; c:\\sextant\\qemu\\qemu.exe -S -s -L \"c:\\sextant\\qemu\" -net nic,model=ne2k_isa -net user -tftp ./ -cdrom grub.iso",
"options": {
"env": {
"PATH": "C:\\sextant\\ccompil"
}
}
},
"linux": {
"comments": "To quit Alt + 2 > quit",
"command": "cd build/boot; qemu-system-i386 -S -s -net nic,model=ne2k_isa -net user,tftp=./ -cdrom grub.iso"
},
"osx": {
"comments": "To quit Alt + 2 > quit",
"command": "cd build/boot; qemu-system-i386 -S -s -net nic,model=ne2k_isa -net user,tftp=./ -cdrom grub.iso"
},
"group": {
"kind": "build",
"isDefault": true
......@@ -50,6 +117,10 @@
"comments": "To quit Alt + 2 > quit",
"command": "cd build/boot; qemu-system-x86_64 -curses -net nic,model=ne2k_isa -net user,tftp=./ -cdrom grub.iso"
},
"osx": {
"comments": "To quit Alt + 2 > quit",
"command": "cd build/boot; qemu-system-x86_64 -curses -net nic,model=ne2k_isa -net user,tftp=./ -cdrom grub.iso"
},
"group": {
"kind": "build",
"isDefault": true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment