2020-02-22 09:29:45 +00:00
|
|
|
{
|
|
|
|
// 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": [
|
|
|
|
{
|
2020-05-29 12:26:43 +00:00
|
|
|
"name": "Run ELFIO Tests",
|
2020-02-22 09:29:45 +00:00
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
2022-02-11 21:15:39 +00:00
|
|
|
"program": "${workspaceFolder}/build/tests/ELFIOTest",
|
2020-08-18 19:57:45 +00:00
|
|
|
"args": [
|
2022-08-27 12:57:14 +00:00
|
|
|
"--gtest_filter=ELFIOTest.load32",
|
2020-08-18 19:57:45 +00:00
|
|
|
],
|
2020-02-22 09:29:45 +00:00
|
|
|
"stopAtEntry": false,
|
2022-02-11 21:15:39 +00:00
|
|
|
"cwd": "${workspaceFolder}/build/tests",
|
2020-02-22 09:29:45 +00:00
|
|
|
"environment": [],
|
|
|
|
"externalConsole": false,
|
|
|
|
"MIMode": "gdb",
|
|
|
|
"setupCommands": [
|
|
|
|
{
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
"ignoreFailures": true
|
|
|
|
}
|
|
|
|
],
|
2020-05-29 12:26:43 +00:00
|
|
|
"preLaunchTask": "ELFIO Test build",
|
|
|
|
"miDebuggerPath": "/usr/bin/gdb"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Run ELF Dump",
|
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
2021-11-08 13:32:14 +00:00
|
|
|
"program": "${workspaceFolder}/build/examples/elfdump/elfdump",
|
2022-01-14 18:49:23 +00:00
|
|
|
"args": [
|
2022-08-29 05:14:57 +00:00
|
|
|
"build/tests/crash-de896e9e31bf6f4c540e7462ccc0440018e4f0de"
|
2022-01-14 18:49:23 +00:00
|
|
|
],
|
2020-05-29 12:26:43 +00:00
|
|
|
"stopAtEntry": false,
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"environment": [],
|
|
|
|
"externalConsole": false,
|
|
|
|
"MIMode": "gdb",
|
|
|
|
"setupCommands": [
|
|
|
|
{
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
"ignoreFailures": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"preLaunchTask": "ELF Dump Build",
|
2020-02-22 09:29:45 +00:00
|
|
|
"miDebuggerPath": "/usr/bin/gdb"
|
2021-09-17 21:39:28 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Run proc_mem",
|
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "${workspaceFolder}/build/examples/proc_mem/proc_mem",
|
|
|
|
"args": [
|
2022-01-14 18:49:23 +00:00
|
|
|
"11706",
|
2021-09-17 21:39:28 +00:00
|
|
|
"/usr/bin/bash"
|
|
|
|
],
|
2022-01-14 18:49:23 +00:00
|
|
|
"stopAtEntry": false,
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"environment": [],
|
|
|
|
"externalConsole": false,
|
|
|
|
"MIMode": "gdb",
|
|
|
|
"setupCommands": [
|
|
|
|
{
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
"ignoreFailures": true
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"miDebuggerPath": "/home/user/ELFIO/examples/sudo_gdb.sh"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Run dump for /proc/kcore",
|
|
|
|
"type": "cppdbg",
|
|
|
|
"request": "launch",
|
|
|
|
"program": "${workspaceFolder}/build/examples/elfdump/elfdump",
|
|
|
|
"args": [
|
|
|
|
"/proc/kcore"
|
|
|
|
],
|
2021-09-17 21:39:28 +00:00
|
|
|
"stopAtEntry": false,
|
|
|
|
"cwd": "${workspaceFolder}",
|
|
|
|
"environment": [],
|
|
|
|
"externalConsole": false,
|
|
|
|
"MIMode": "gdb",
|
|
|
|
"setupCommands": [
|
|
|
|
{
|
|
|
|
"description": "Enable pretty-printing for gdb",
|
|
|
|
"text": "-enable-pretty-printing",
|
|
|
|
"ignoreFailures": true
|
|
|
|
}
|
|
|
|
],
|
2022-01-14 18:49:23 +00:00
|
|
|
"miDebuggerPath": "/home/user/ELFIO/examples/sudo_gdb.sh"
|
2022-06-16 14:30:22 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Fuzzer",
|
|
|
|
"type": "lldb",
|
|
|
|
"request": "launch",
|
2022-07-28 14:53:21 +00:00
|
|
|
"program": "${workspaceFolder}/build/tests/elfio_fuzzer",
|
2022-06-16 14:30:22 +00:00
|
|
|
"args": [
|
2022-08-29 05:14:57 +00:00
|
|
|
"crash-7143f5e49745dc6ce8909e642f9351d9d6496020"
|
2022-06-16 14:30:22 +00:00
|
|
|
],
|
2022-08-29 05:14:57 +00:00
|
|
|
"cwd": "${workspaceFolder}/build/tests",
|
2020-02-22 09:29:45 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|