Last active
October 21, 2020 07:25
-
-
Save qvoid/c9af3aa6ce239e80917b7e2016b198d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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 arm64 linux", | |
//"executable": "./bin/executable", | |
"gdbpath": "<path_to_ndk>/android-ndk-r11c/prebuilt/linux-x86_64/bin/gdb", | |
"target": "<target_ip>:5039", | |
"remote": true, | |
"cwd": "${workspaceRoot}", | |
"valuesFormatting": "parseText" | |
}, | |
{ | |
"type": "gdb", | |
"request": "attach", | |
"name": "Attach to android over adb", | |
//"executable": "./bin/executable", | |
"gdbpath": "<path_to_ndk>/android-ndk-r11c/prebuilt/linux-x86_64/bin/gdb", | |
"target": ":5039", | |
"remote": true, | |
"cwd": "${workspaceRoot}", | |
"valuesFormatting": "parseText" | |
}, | |
{ | |
"name": "(gdb) Launch", | |
"type": "cppdbg", | |
"request": "launch", | |
"program": "<path_to_program>", | |
"args": [], | |
"stopAtEntry": false, | |
"cwd": "${workspaceFolder}", | |
"environment": [], | |
"externalConsole": false, | |
"MIMode": "gdb", | |
"miDebuggerPath": "<path_to_ndk>/android-ndk-r11c/prebuilt/linux-x86_64/bin/gdb", | |
"miDebuggerServerAddress": "localhost:5039", | |
"setupCommands": [ | |
{ | |
//"text": "set solib-search-path ${workspaceFolder}/gdb/symbols/vendor/lib/", | |
"text": "set solib-absolute-prefix ${workspaceFolder}/gdb/symbols", | |
"ignoreFailures": false | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment